lib/mongoid/elasticsearch/es.rb in mongoid-elasticsearch-0.3.3 vs lib/mongoid/elasticsearch/es.rb in mongoid-elasticsearch-0.3.4
- old
+ new
@@ -66,9 +66,10 @@
field: field
}
}
}
results = client.suggest(index: index.name, body: body)
+ p results
results['q'][0]['options']
end
end
end
end