cncflora_commons 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cncflora_commons.rb +1 -1
- metadata +1 -1
data/lib/cncflora_commons.rb
CHANGED
@@ -64,7 +64,7 @@ def search(db,index,query)
|
|
64
64
|
query="scientificName:'Aphelandra longiflora'" unless query != nil && query.length > 0
|
65
65
|
query_json={"query"=>{"query_string"=>{"query"=>query}}}
|
66
66
|
result = []
|
67
|
-
r = http_post("#{settings.elasticsearch}/#{db}/#{index}/_search?size=
|
67
|
+
r = http_post("#{settings.elasticsearch}/#{db}/#{index}/_search?size=99999",query_json)
|
68
68
|
if r['hits'] && r['hits']['hits'] then
|
69
69
|
r['hits']['hits'].each{|hit|
|
70
70
|
result.push(hit["_source"])
|