picky 0.10.2 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- data/project_prototype/app/application.rb +4 -4
- metadata +2 -2
@@ -27,9 +27,9 @@ class PickySearch < Application
|
|
27
27
|
books_index = index :books,
|
28
28
|
Sources::CSV.new(:title, :author, :isbn, :year, :publisher, :subjects, file: 'app/library.csv'),
|
29
29
|
category(:title,
|
30
|
-
similarity: Similarity::Phonetic.new(3)
|
31
|
-
partial: Partial::Substring.new(from: 1)
|
32
|
-
|
30
|
+
similarity: Similarity::Phonetic.new(3), # Up to three similar title word indexed (default: No similarity).
|
31
|
+
partial: Partial::Substring.new(from: 1)), # Indexes substrings upwards from character 1 (default: -3),
|
32
|
+
# You'll find "picky" even when entering just a "p".
|
33
33
|
category(:author,
|
34
34
|
partial: Partial::Substring.new(from: 1)),
|
35
35
|
category(:isbn,
|
@@ -46,4 +46,4 @@ class PickySearch < Application
|
|
46
46
|
|
47
47
|
# Note: You can pass a query multiple indexes and it will query in all of them.
|
48
48
|
|
49
|
-
end
|
49
|
+
end
|