has_searcher 0.0.6 → 0.0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app/models/search.rb +1 -1
- data/lib/has_searcher/version.rb +1 -1
- metadata +3 -2
data/lib/app/models/search.rb
CHANGED
@@ -29,7 +29,7 @@ class Search < ActiveRecord::Base
|
|
29
29
|
if column_for_attribute(column).type == :text
|
30
30
|
if fuzzy?(value)
|
31
31
|
search.adjust_solr_params do |params|
|
32
|
-
|
32
|
+
params[:q] = value.split(/ /).map{ |value| "#{column}_text:#{value}"}.join(' ')
|
33
33
|
end
|
34
34
|
else
|
35
35
|
search.keywords value, :fields => column
|
data/lib/has_searcher/version.rb
CHANGED
metadata
CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.0.6.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Dmitry Lihachev
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-24 00:00:00 +07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|