Facing issue in a query

I am using multi-search query with a filter query . but I am getting no result after applying filter.

{
"query": {
"bool": {
"must": {
"multi_match": {
"operator": "and",
"query": "st",
"fields": [
"email",
"firstName",
"lastName"
]
}
},
"filter": {
"term": {
"status": "BLOCKED"
}
}
}
}
}

I am applying autocomplete search on the user having blocked status.

Your query will only match people called "st". To match "steve", "stephanie" etc you'll need to use a form of prefix query or the autocomplete features

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