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
Post a Comment