lsolr 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lsolr.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c54840a14b31fc2c85a73294fd6617dd5e918584
|
4
|
+
data.tar.gz: 68f92d1fce16534895aaf287eaa33ab6c407f041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffd1a3501680882574ff40442680ee588cdbc539f5906d6d25863e21aeda24777a1d34677dc99cbe67bdc0144595f73bf08687da2d1727eddaefce184d90f043
|
7
|
+
data.tar.gz: 28cae9bcbf02b498c0ebaadfdb77ba0bbf8cff4476fd7c035d546eca45b43ecec28d4e99148dacfa576b132eba53c68158bfde5cd75df6e5ea396e9faef6eed7
|
data/lib/lsolr.rb
CHANGED
@@ -24,6 +24,7 @@ class LSolr
|
|
24
24
|
GREATER_THAN_OR_EQUAL_TO = '['
|
25
25
|
LESS_THAN_OR_EQUAL_TO = ']'
|
26
26
|
|
27
|
+
WILD_CARD = '*'
|
27
28
|
PROXIMITY = '~'
|
28
29
|
BOOST = '^'
|
29
30
|
FUZZY_MATCH_DISTANCE_RANGE = (0.0..2.0).freeze
|
@@ -150,7 +151,7 @@ class LSolr
|
|
150
151
|
#
|
151
152
|
# @return [LSolr] self instance
|
152
153
|
def prefix_match(value)
|
153
|
-
@value = clean(value, symbols: RESERVED_SYMBOLS - %w[* ?]).split.join(
|
154
|
+
@value = clean(value, symbols: RESERVED_SYMBOLS - %w[* ?]).split.join(WILD_CARD)
|
154
155
|
self
|
155
156
|
end
|
156
157
|
|