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

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -