# Facing issue in a query

**URL:** <https://discuss.elastic.co/t/facing-issue-in-a-query/134887>\
**Category:** Elasticsearch\
**Created:** [June 7, 2018, 4:59am UTC](https://discuss.elastic.co/t/facing-issue-in-a-query/134887 "2018-06-07T04:59:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Garg](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@Ankit\_Garg](https://discuss.elastic.co/u/Ankit_Garg)\
**Post date:** [June 7, 2018, 4:59am UTC](https://discuss.elastic.co/t/facing-issue-in-a-query/134887/1 "2018-06-07T04:59:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [June 7, 2018, 11:16am UTC](https://discuss.elastic.co/t/facing-issue-in-a-query/134887/2 "2018-06-07T11:16:28Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2018, 11:16am UTC](https://discuss.elastic.co/t/facing-issue-in-a-query/134887/3 "2018-07-05T11:16:39Z")

</div>

Closed on July 5, 2018, 11:16am UTC

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