# Getting Issue while query Elasticsearch having kstem with edge gram in filter

**URL:** <https://discuss.elastic.co/t/getting-issue-while-query-elasticsearch-having-kstem-with-edge-gram-in-filter/280555>\
**Category:** Elasticsearch\
**Created:** [August 5, 2021, 4:04pm UTC](https://discuss.elastic.co/t/getting-issue-while-query-elasticsearch-having-kstem-with-edge-gram-in-filter/280555 "2021-08-05T16:04:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@rai](https://discuss.elastic.co/u/rai)\
**Post date:** [August 5, 2021, 4:04pm UTC](https://discuss.elastic.co/t/getting-issue-while-query-elasticsearch-having-kstem-with-edge-gram-in-filter/280555/1 "2021-08-05T16:04:43Z")

</div>

Pass complete addressline1 as input with match query unable to find the record because of kstem.

1. We have kstem, lower, edge gram and synonym filter applied on addressline1 field, While creating the index.
2. for an example -pass addressline1 as input “208 S SYCAMORE ST”
3. While creating index it creates different keys with addressline1  
2,20,208,s,sy,syc,syca,sycam,sycamo,sycamor, **sycamore,s,st**
4. It seems because of stem it was treating each word as plural and not creating key with last letter in word as bold. and not unable to search with full address with exact match

Can someone suggest if it is the right approach to use stemming and edge- gram filter together?

---

<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:** [September 2, 2021, 4:05pm UTC](https://discuss.elastic.co/t/getting-issue-while-query-elasticsearch-having-kstem-with-edge-gram-in-filter/280555/2 "2021-09-02T16:05:34Z")

</div>

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