pg_fulltext 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 176bed19822e89a050d214f8e7b077fa1082b7c5d46bad5686d4c122cdcf9947
4
- data.tar.gz: a70d4baec8fde810854725dfadb101a7942a5e62e2d69de4861f8560cdec44ec
3
+ metadata.gz: 1c16544874ce54b73b52c22439a3fc900dcdbc7746747c19223e2f356e7fcc2b
4
+ data.tar.gz: ff4568fc2e6f3f6791fe9b6c668c84a58faf0291e18d5aad9412ba374d2b492d
5
5
  SHA512:
6
- metadata.gz: 9c7652680618afe308366943bff2d55c87a54dbad8b5707758a0670942facf35c5f67100aebe23eb716e2ab02443494b4740f54862dc682ec1b8c42c178b44c0
7
- data.tar.gz: 9ab936b7086175869500406f63778b31dd96ae734d28b13af1913f1c3ee80e91ca8e299eabb1d9e699e96c34cc2df067564978dec8cdc7a04743d54c7f4bc8ee
6
+ metadata.gz: d46d4112bb85e7f078b77c3113493fc4c298c06e04b9778a28543f35452a1fc18f23ac0560d175d648603da636799686cdaff1b4bbec0b417cb66f83e1255a5d
7
+ data.tar.gz: 9b94adf9fe5c006044372df33df9746ad377e1198ed23369da55a015b92cabd74644d34103a0d3cc808a4586a3fcdbba48bae80865ad7d363714146d79686861
@@ -66,6 +66,7 @@ module PgFulltext
66
66
  tsquery = "websearch_to_tsquery(#{"#{connection.quote search_type}, " if search_type.present?}#{tsquery_string_quoted})"
67
67
  tsquery = "regexp_replace(#{tsquery}::text, '''([a-z0-9\\-_@.]+)''', '''\\1'':*', 'g')::tsquery" if prefix
68
68
  relation
69
+ .unscoped
69
70
  .select(:id, "ts_rank_cd(#{fqc_quoted}, #{tsquery}) AS rank")
70
71
  .where("#{fqc_quoted} @@ #{tsquery}")
71
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_fulltext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Robertson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-04 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord