why elasticsearch exact match ignore symbols? -
i new elasticsearch , has got me stuck hours. want search following:
post _search { "query": { "match_phrase": { "heading":"retweet - barbara keeley (labour mp)" } } }
and gives me want, if change the phrase following:
"heading":"retweet - barbara keeley (labour mp"
see, remove bracket in end, still give me same result, looks when running search, ignore special characters ")", or "@" , search letters.
so please advise if want search entered, how do this? if add special character or remove any, should not give me result.
the mapping info is:
{ politicaldataheading: { mappings: { politicaldata: { properties: { date: { type: "date", format: "strict_date_optional_time||epoch_millis" }, heading: { type: "string" }, id: { type: "long" }, time: { type: "date", format: "strict_date_optional_time||epoch_millis" } } } } } }
please help.
thanks.
Comments
Post a Comment