lsolr 0.0.1 → 0.0.2
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 +1 -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: 3ff72ff796373dff95e027ae0121a55b69f15878
|
4
|
+
data.tar.gz: 99d1e7d1a606578a907fea5aa167067de39e661c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76bbae287e7d4b159a7e7c05491a26c29259474f9d469eb22e5f2e84a9d74fdaef7d3e7dc2c87942cc8d6cc770cc7f461c722090f98c155b46acac49096256ee
|
7
|
+
data.tar.gz: 3df9ee21192b7f2fad330a3a4e5e003d6866539e307a4a1689062e345a6d94e95f00c2203f08d7bf82915ada3d6fe428bbb294c957ca39f1e82034ee450dccef
|
data/lib/lsolr.rb
CHANGED
@@ -124,7 +124,7 @@ class LSolr
|
|
124
124
|
# @return [LSolr] self instance
|
125
125
|
def phrase_match(values, distance: 0)
|
126
126
|
value = values.map { |v| clean(v) }.join(REPLACEMENT_CHAR)
|
127
|
-
proximity_match = distance
|
127
|
+
proximity_match = distance > 0 ? "#{PROXIMITY}#{distance}" : ''
|
128
128
|
@value = %("#{value}"#{proximity_match})
|
129
129
|
self
|
130
130
|
end
|