noodall-core 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/noodall/search.rb +2 -2
- data/noodall-core.gemspec +1 -1
- data/spec/node_spec.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.8
|
data/lib/noodall/search.rb
CHANGED
@@ -50,7 +50,7 @@ module Noodall
|
|
50
50
|
criteria.merge!( :_keywords => { :$in => words } )
|
51
51
|
|
52
52
|
# The Search result
|
53
|
-
search_result = collection.map_reduce(search_map(words), search_reduce,
|
53
|
+
search_result = collection.map_reduce(search_map(words), search_reduce, :query => criteria)
|
54
54
|
|
55
55
|
# Add value to sort options because model is stored in the value key
|
56
56
|
options[:sort].map! do |s,v|
|
@@ -91,7 +91,7 @@ module Noodall
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def search_reduce
|
94
|
-
"function( key , values ){return
|
94
|
+
"function( key , values ){return values[0];}"
|
95
95
|
end
|
96
96
|
|
97
97
|
def search_finalize
|
data/noodall-core.gemspec
CHANGED
data/spec/node_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 8
|
10
|
+
version: 0.3.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve England
|