Not able to perform exact search

Iam not able to perform the exact search with the below json query.

"query":{
"match":{
"fieldName":"metaData.domainName",
"value" :"Business Resiliency"
}
}

Iam getting all the record like "Transaction Resiliency", "Business outlook" etc.. But i need to perform exact match and get all the records which matches the domainName is equal to "Business Resiliency". Please suggest and lookiing for an help.

Thanks

Welcome!

If you re using all the default mapping, try this:

"query":{
  "match":{
    "fieldName":"metaData.domainName.keyword",
    "value" :"Business Resiliency"
  }
}

Otherwise, you need to change the mapping and use a keyword datatype for metaData.domainName or use a keyword analyzer for the field.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.