How perform exact query match search operation on ES ? I tried below one but giving contains instead of matching.
GET default-2018.*/_search
{
"query": {
"match": {
"message": "need to find exact message"
}
}
}
But here, i'm getting results with message "need to send" or "find text".. but i need documents which are having message as "need to find exact message"
Thank you for your response. I'm using one of the Keyword field to find data from ES. ANd i got an udpated script but still this is also not work .
GET default-2018.*/_search
{
"query": {
"query_string" : {
"default_field" : "message",
"query" : "Found valid data. Can proceed to click the link.",
"phrase_slop": 0
}
}
}
Here, ES is giving results which are having atleast one word in any log instead of giving only exact match. How i can format above query to get only exact matching results ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.