# Full match on analyzed text field

**URL:** https://discuss.elastic.co/t/full-match-on-analyzed-text-field/267982
**Category:** Elasticsearch
**Created:** [March 22, 2021, 2:24pm UTC](https://discuss.elastic.co/t/full-match-on-analyzed-text-field/267982 "2021-03-22T14:24:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JBo\_Shim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbo_shim/32/47236_2.png) [@JBo\_Shim](https://discuss.elastic.co/u/JBo_Shim)
#### Post date: [March 22, 2021, 2:24pm UTC](https://discuss.elastic.co/t/full-match-on-analyzed-text-field/267982/1 "2021-03-22T14:24:26Z")

</div>

Hi guys.

I'm looking for the way to query only fully matched string on analyzed text field.

For example, when I set "tasty" as synonym of "delicious", the indexed data will be like this:

```
1. "delicious apple"

term position 0: delicious
term position 0: tasty
term position 1: apple

2. "delicious apple and banana"

term position 0: delicious
term position 0: tasty
term position 1: apple
term position 2: and
term position 3: banana

```

Then, when I try to search "tasty apple" for fully matched field,  
the expected result will be only document 1 not document 2.

So the purpose of querying "tasty apple" for fully match field is  
to find word "tasty" as analyzed form on position 0 (which also includes delicious),  
and "apple" as analyzed form on position 1.

I could not do this with term query or match phrase  
because term query is for keyword field and match phrase query will also return document 2.

Any tip or advice will be helpful.

Thanks!

---

<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: [April 19, 2021, 2:25pm UTC](https://discuss.elastic.co/t/full-match-on-analyzed-text-field/267982/2 "2021-04-19T14:25:23Z")

</div>

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