# Suggestions for a better text based query - using match\_phrase but it's too precise

**URL:** <https://discuss.elastic.co/t/suggestions-for-a-better-text-based-query-using-match-phrase-but-its-too-precise/265138>\
**Category:** Elasticsearch\
**Created:** [February 22, 2021, 11:53pm UTC](https://discuss.elastic.co/t/suggestions-for-a-better-text-based-query-using-match-phrase-but-its-too-precise/265138 "2021-02-22T23:53:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_Gibbs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m_gibbs/32/45665_2.png) [@M\_Gibbs](https://discuss.elastic.co/u/M_Gibbs)\
**Post date:** [February 22, 2021, 11:53pm UTC](https://discuss.elastic.co/t/suggestions-for-a-better-text-based-query-using-match-phrase-but-its-too-precise/265138/1 "2021-02-22T23:53:19Z")

</div>

Hi there,

My title probably doesn't elaborate that well.

We have a significant dataset, where our end-users can search base don a job\_title.

Currently I'm using:

bool  
should  
match\_phrase

We also include "minimum\_should\_match" : 1" in the query.

But on occassions we get results far too narrow. For example, we in theory have 1000's of matches for this .

Yet, we only return two e.g.:

'Woodshop Manager And Furniture Designer'  
and  
'Furniture Manager, Designer, Buyer'

So i'm hoping for some expert advice from the forum, what should I look at for the cause of this issue? It's not matching 'exact' which could be a cause of the issue, as the second result doesn't have the exact match 'Furniture Designer' - so is there a better query instead of match\_phrase I can use?

I can't use query\_string or simple\_string as we are using a join in our schema to allow for multiple queries to be dynamically added.

Any guidance appreciated.

---

<div class="post-metadata">

**Author:** ![M\_Gibbs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m_gibbs/32/45665_2.png) [@M\_Gibbs](https://discuss.elastic.co/u/M_Gibbs)\
**Post date:** [February 24, 2021, 5:36am UTC](https://discuss.elastic.co/t/suggestions-for-a-better-text-based-query-using-match-phrase-but-its-too-precise/265138/2 "2021-02-24T05:36:24Z")

</div>

Gentle bump!

---

<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:** [March 24, 2021, 5:36am UTC](https://discuss.elastic.co/t/suggestions-for-a-better-text-based-query-using-match-phrase-but-its-too-precise/265138/3 "2021-03-24T05:36:31Z")

</div>

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