polysearch 0.2.0 → 0.2.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/app/models/{record.rb → polysearch/record.rb} +0 -0
- data/app/models/{concerns → polysearch}/searchable.rb +0 -0
- data/lib/polysearch.rb +2 -2
- data/lib/polysearch/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d46cc2a6e4a3d8bb8100e611d57722c9576f7b4104770903f821fb8432ac921
|
|
4
|
+
data.tar.gz: 960aff262721eb4e0acc75773aa75169406bde6ce2fda77896dddd8ff96d5ce5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78cc5ea29490948ac03a67e226b5d5b6c12335b74a4ac68f329358903d92b64501ef57dba654aac737518c48a347ccf4aac4dfe86b7aa03e4b21e8d4b5c158e5
|
|
7
|
+
data.tar.gz: 2fe8f4139749f14b96b528a3b3aee6609f66f50325ad648c631832fb48715a1e5fe016c8733963c1a521758a7abc67e45f0e0cad6d18be25522ff620200e2994
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -73,10 +73,10 @@ Simplified polymorphic full text + similarity search based on postgres.
|
|
|
73
73
|
# find similarity matches, best for misspelled search terms (slower)
|
|
74
74
|
User.similarity_search("shwn")
|
|
75
75
|
|
|
76
|
-
# perform a
|
|
76
|
+
# perform both a full text search and similarity search
|
|
77
77
|
User.combined_search("shwn")
|
|
78
78
|
|
|
79
|
-
# perform a full text search and fall back to similarity (faster than combined_search)
|
|
79
|
+
# perform a full text search and fall back to similarity search (faster than combined_search)
|
|
80
80
|
User.polysearch("shwn")
|
|
81
81
|
|
|
82
82
|
# calculate counts (explicitly pass :id to omit search rankings)
|
|
File without changes
|
|
File without changes
|
data/lib/polysearch.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require_relative "polysearch/version"
|
|
4
|
-
require_relative "../app/models/record"
|
|
5
|
-
require_relative "../app/models/
|
|
4
|
+
require_relative "../app/models/polysearch/record"
|
|
5
|
+
require_relative "../app/models/polysearch/searchable"
|
|
6
6
|
|
|
7
7
|
module Polysearch
|
|
8
8
|
class Engine < Rails::Engine
|
data/lib/polysearch/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: polysearch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Hopkins
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-05-
|
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -92,8 +92,8 @@ files:
|
|
|
92
92
|
- LICENSE.txt
|
|
93
93
|
- README.md
|
|
94
94
|
- Rakefile
|
|
95
|
-
- app/models/
|
|
96
|
-
- app/models/
|
|
95
|
+
- app/models/polysearch/record.rb
|
|
96
|
+
- app/models/polysearch/searchable.rb
|
|
97
97
|
- bin/console
|
|
98
98
|
- bin/loc
|
|
99
99
|
- bin/setup
|