# Stemming and the near span query

**URL:** <https://discuss.elastic.co/t/stemming-and-the-near-span-query/315449>\
**Category:** Elasticsearch\
**Created:** [September 29, 2022, 11:51am UTC](https://discuss.elastic.co/t/stemming-and-the-near-span-query/315449 "2022-09-29T11:51:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![af1](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@af1](https://discuss.elastic.co/u/af1)\
**Post date:** [September 29, 2022, 11:51am UTC](https://discuss.elastic.co/t/stemming-and-the-near-span-query/315449/1 "2022-09-29T11:51:59Z")

</div>

Hello community,  
hope to get your help on an issue we are having,

we are using the english stemming and are running a near span query that basically searches for  
"buying near before"

now if I search for a match phrase "buying before" it works fine,

but with the span near query I get no results, I have to search for "bui near befor" for it to work  
since the buying is stemmed as bui and before is stemmed as befor

am I suppose to have another stemming algorithm? maybe it's my near span query? or maybe something else?

thanks in advance for any answers,  
Amir

---

<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:** [October 27, 2022, 11:52am UTC](https://discuss.elastic.co/t/stemming-and-the-near-span-query/315449/2 "2022-10-27T11:52:06Z")

</div>

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