I am fetching results with the following query where search is being done on Strings (Recipe name):
let body2 = {
size: 200,
from: 0,
sort : [
{ "@timestamp" : {"order": "desc", "format": "strict_date_optional_time_nanos"}}
],
//fuzziness: "1",// "AUTO: 0,2",
query: {
// Recipe: req.query['q'],
// FLAG: 'END'
bool: {
must: [
{
match: {
Line: req.query['q']
}
},
{
match: {
FLAG: "END"
}
},
{
match: {
Recipe: req.query['recipe']
}
},
{
range: {
"@timestamp": {
gte: req.query['sDate'],
lte: req.query['eDate']
}
}
}
]
}
}
The response I am getting contains those results as well which are not a complete match with the searched recipe (contains those results which has some matching substring). Is there anyway for me to remove fuzziness and only fetch those results which have a 100% match?