Hi I am trying to do a percolator index using "elasticsearch.py" api. But I am not even getting any results.
The API documentation seems to have 3 or 4 functions related to percolation.
I have checked the following possibilities. can anyone be of some help , so that I can solve it.
es = Elasticsearch()
query = {'query': {'term': {'message': 'bonsai tree'}}}
es.create(index='test', doc_type='message', percolate=query, id='kuku2', body = {"message":"bonsai tree"})
doc = {'doc': {'message': 'I am a bonsai tree'}}
k = es.percolate(index='test', doc_type='type1', body=doc)
print k
###### Result #####
u'matches': [], u'total': 0, u'took': 0, u'_shards': {u'successful': 1, u'failed': 0, u'total': 1}}
I hope "es.percolate" is used for searching. "es.create" allows us to register documents as percolate index. But it is not so perfectly mentioned in the documentation. ".percolate" have also used in the place of index. Please help.