elasticsearch - Elastic search GET method not working -
i have created index of name gizmoindex
type employee
contain different documents , each 1 has automatic generated id. when executing query. example : -
localhost:9200/gizmoindex/employee/_search { "query": { "filtered": { "filter": { "term": { "firstname": "gaurav" } } } } }
it not giving output. if created user defined index : -
"localhost:9200/gizmoindex/employee/1"
using put, above mentioned query retreiving result working fine.
check uri search , modified search query below
curl -h localhost:9200/gizmoindex/employee/_search?pretty=1 -d ' { "query": { "filtered": { "filter": { "term": { "firstname": "gaurav" } } } } }
Comments
Post a Comment