meilisearch-rails 0.12.0 → 0.13.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 +1 -1
- data/README.md +2 -1
- data/lib/meilisearch/rails/multi_search/result.rb +2 -2
- data/lib/meilisearch/rails/version.rb +1 -1
- data/lib/meilisearch-rails.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12e923de131ba62ca983afa2c0a998379a05c12010dd995a86ef968b0674804f
|
4
|
+
data.tar.gz: 3b07fe9db72e017693694b2b243885dbe853f4cdfaa9606e1662d5a05547af84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0968aafedae8f8b678d5cd94b5b4c587733b8fa9108076410eb612eb7923889f2f1e30e97b70697bcb46da2f492647363112989326bacf43ab35a29be7c30c5f'
|
7
|
+
data.tar.gz: 5578f94eb44cee0c57e2fdff57a3bf955ab5db961b879dad33b3a35149807c176fb4daaf33d19a42d70ab7f68577f72f07cf1ddcf4aa9f52994c8f85f1743fae
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -207,6 +207,7 @@ class Book < ApplicationRecord
|
|
207
207
|
crop_length 10
|
208
208
|
faceting max_values_per_facet: 2000
|
209
209
|
pagination max_total_hits: 1000
|
210
|
+
proximity_precision 'byWord'
|
210
211
|
end
|
211
212
|
end
|
212
213
|
```
|
@@ -230,7 +231,7 @@ harry_book.formatted # => {"id"=>"1", "name"=>"<em>Harry</em> Potter", "descript
|
|
230
231
|
👉 Don't forget that `attributes_to_highlight`, `attributes_to_crop`, and
|
231
232
|
`crop_length` can be set up in the `meilisearch` block of your model.
|
232
233
|
|
233
|
-
|
234
|
+
### 🔍 Sorted search
|
234
235
|
|
235
236
|
As an example of how to use the sort option, here is how you could achieve
|
236
237
|
returning all books sorted by title in ascending order:
|
data/lib/meilisearch-rails.rb
CHANGED
@@ -67,6 +67,7 @@ module MeiliSearch
|
|
67
67
|
pagination
|
68
68
|
faceting
|
69
69
|
typo_tolerance
|
70
|
+
proximity_precision
|
70
71
|
].freeze
|
71
72
|
|
72
73
|
CAMELIZE_OPTIONS = %i[pagination faceting typo_tolerance].freeze
|
@@ -576,7 +577,7 @@ module MeiliSearch
|
|
576
577
|
ms_configurations.filter_map do |options, settings|
|
577
578
|
{
|
578
579
|
synchronous: synchronous || options[:synchronous],
|
579
|
-
index_uid: options
|
580
|
+
index_uid: ms_index_uid(options),
|
580
581
|
primary_key: primary_key
|
581
582
|
}.with_indifferent_access unless ms_indexing_disabled?(options)
|
582
583
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meilisearch-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Meili
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: meilisearch
|