lsolr 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lsolr.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96e3c013273a9d3bdccda3cb4c7980afbce8a365
4
- data.tar.gz: f979ae4fc720bce5e6ad921f59e86f3eecc9bbf0
3
+ metadata.gz: c54840a14b31fc2c85a73294fd6617dd5e918584
4
+ data.tar.gz: 68f92d1fce16534895aaf287eaa33ab6c407f041
5
5
  SHA512:
6
- metadata.gz: 1d8979647d1968947f1d8724f084ba747d23687fbb98e33528156c15ce71be7dd33d1b99d5dfdefcdbd5dcbe7d87bf0e0d11123f81b4d1db8b034f37524add83
7
- data.tar.gz: 586b22e3e3ec71c3bb751e4fe4cb58dfe91b4e6336cd7b77b66bbfa47965bd720d0bcbf1393754b8023ae7bb4f492bf4767dc92651b0e5e5de35fb19f9b2a747
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lsolr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taishi Kasuga