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

Popular posts from this blog

ubuntu - How to disable Kernel Module Signing in linux -

java - Ebean enhancement ignores a model -

How to combine associative arrays in bash? -