Elasticsearch term filter not working? -


i'm trying following term filter

{   "query": {     "term": {       "name": "terry harvey"     }   } } 

and i'm getting 0 hits

{   took: 3   timed_out: false   _shards: {   total: 5   successful: 5   failed: 0 } hits: {     total: 0     max_score: 0     hits: [ ]   } } 

when used "match filter" instead "term filter", 48 hits.

what doing wrong? =(

thanks!

term queries , filters not analyzed, meaning find exact matches. on other hand, match queries analyzed , name field being analyzed well. more info here.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -