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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -