# Search words in order with stems and analyzed

**URL:** <https://discuss.elastic.co/t/search-words-in-order-with-stems-and-analyzed/94721>\
**Category:** Elasticsearch\
**Created:** [July 27, 2017, 1:34am UTC](https://discuss.elastic.co/t/search-words-in-order-with-stems-and-analyzed/94721 "2017-07-27T01:34:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NetDefender](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@NetDefender](https://discuss.elastic.co/u/NetDefender)\
**Post date:** [July 27, 2017, 1:34am UTC](https://discuss.elastic.co/t/search-words-in-order-with-stems-and-analyzed/94721/1 "2017-07-27T01:34:36Z")

</div>

Is there a way to search two words in some order.  
For example i have the words "Foo" and "Bar".  
In the following phrases :  
Foo is the way to bar==\> OK  
Bar is not the way to Foo==\> No  
Foos are the way to bars==\> OK (Stemmed)

Thanks,

---

<div class="post-metadata">

**Author:** ![NetDefender](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@NetDefender](https://discuss.elastic.co/u/NetDefender)\
**Post date:** [July 29, 2017, 5:59pm UTC](https://discuss.elastic.co/t/search-words-in-order-with-stems-and-analyzed/94721/2 "2017-07-29T17:59:34Z")

</div>

Solution:

> <https://stackoverflow.com/questions/45339186/language-analyzer-not-working-with-span-query-elasticsearch>

  
elasticsearch/45339877#45339877

---

<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:** [August 26, 2017, 5:59pm UTC](https://discuss.elastic.co/t/search-words-in-order-with-stems-and-analyzed/94721/3 "2017-08-26T17:59:44Z")

</div>

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