Elasticsearch: Why is my query returning too many results? -


i'm querying http://elasticsearch.myserver.net:9200/my_index/foo/ following query:

{ "query": {     "ids": {       "type": "foo",       "values": [         "fff",         "bar",         "baz"       ]     }   } } 

but i'm getting response 12 hits, total number of items of type foo in index, rather three, number requested. i'm making query typing "any request" tab of elasticsearch head. going on?

update:

i've tried

{   "query": {     "bool": {       "must": [         {           "ids": {             "type": "programme",             "values": [               "fff",               "330930",               "200005"             ]           }         }       ]     }   } } 

with same result.

if using request tab in head, make sure have dropdown request method set "post". if have "get" method selected may return results similar seeing.

enter image description here


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -