cncflora_commons 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cncflora_commons.rb +1 -1
  2. metadata +1 -1
@@ -63,7 +63,7 @@ def search(index,query)
63
63
  query="scientificName:'Aphelandra longiflora'" unless query != nil && query.length > 0
64
64
  result = []
65
65
  r = http_get("#{settings.elasticsearch}/#{index}/_search?size=999&q=#{URI.encode(query)}")
66
- if r['hist'] && r['hits']['hits'] then
66
+ if r['hits'] && r['hits']['hits'] then
67
67
  r['hits']['hits'].each{|hit|
68
68
  result.push(hit["_source"])
69
69
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cncflora_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: