Hi All,
I am trying to play with percolate query but i am confused about match and field for example
Match Query:
curl -XPUT localhost:9200/my-index/.percolator/1 -d '{
"query": {
"match": {
"message": "elasticsearch"
}
}
}'
Note:This query is working fine for me.
Field Query:
curl -XPUT localhost:9200/my-index/.percolator/1 -d '{
"query": {
"field": {
"message": "elasticsearch"
}
}
}'
But when i try this query it shows exception {"error":"PercolatorException[[my-index] failed to parse query [1]]; nested: QueryParsingException[[my-index] No query registered for [field]]; ","status":500}
and index is created.Please help or suggest where i am going wrong.
Thanks and Regards,
Sumit Gupta