elasticsearch query_string filter syntax bug (version 1.7.x) -


im looking bug in following query, doesn't bring results. want act terms filter, , exact values in country / device fields

get idx/type/_search {  "query": {  "filtered": {   "filter": {     "and": {       "filters": [         {           "query": {             "query_string": {               "query": "country:\"united kingdom\" , device:\"desktop\""             }           }         }       ]     }   } } } } 

specifically, works:

  "query": {             "query_string": {               "query": "\"united kingdom\""             }           } 

but doesnt work:

"query": {             "query_string": {               "query": "country:\"united kingdom\""             }           } 

mapping:

"country": {               "type": "string",               "index": "not_analyzed",               "doc_values": true            }, 


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -