# Some words are not searched by elasticsearch

**URL:** <https://discuss.elastic.co/t/some-words-are-not-searched-by-elasticsearch/295100>\
**Category:** Elasticsearch\
**Created:** [January 21, 2022, 9:51pm UTC](https://discuss.elastic.co/t/some-words-are-not-searched-by-elasticsearch/295100 "2022-01-21T21:51:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Faramarzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amir_faramarzi/32/92919_2.png) [@Amir\_Faramarzi](https://discuss.elastic.co/u/Amir_Faramarzi)\
**Post date:** [January 21, 2022, 9:51pm UTC](https://discuss.elastic.co/t/some-words-are-not-searched-by-elasticsearch/295100/1 "2022-01-21T21:51:55Z")

</div>

Hello

I have noticed that some of the words that the user searches for are not searched by Elasticsearch

For example, if the user searches for machine L, Elasticsearch only searches for L and does not search for the word machine at all

It works when I change the boost in some matches

Sometimes, due to the fact that I am sure that the word searched by the user is in the database, after activating explain, he still realizes that even the word searched by the user has not been searched even by Elasticsearch.

Does anyone know what the reason is?

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [January 21, 2022, 11:34pm UTC](https://discuss.elastic.co/t/some-words-are-not-searched-by-elasticsearch/295100/2 "2022-01-21T23:34:22Z")

</div>

It depends on analyzers that you use. You can use analyze API to check how both queries and document fields are analyzed and whether the words are analyzed to the same token.

---

<div class="post-metadata">

**Author:** ![Amir\_Faramarzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amir_faramarzi/32/92919_2.png) [@Amir\_Faramarzi](https://discuss.elastic.co/u/Amir_Faramarzi)\
**Post date:** [January 22, 2022, 5:46am UTC](https://discuss.elastic.co/t/some-words-are-not-searched-by-elasticsearch/295100/3 "2022-01-22T05:46:06Z")

</div>

This is exactly my surprise

For example, in my query I use 5 matches, each using a different field (each field uses a different analyzer).

There are machine words in all 5 fields, but when I enable explain, I notice that Elasticsearch only searches in 3 of the 5 fields.

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [January 22, 2022, 6:15am UTC](https://discuss.elastic.co/t/some-words-are-not-searched-by-elasticsearch/295100/4 "2022-01-22T06:15:02Z")

</div>

For 5 matches, you have to check the queries and fields be analyzed to contain common tokens using analyze API. Explain API may return only hit fields.

---

<div class="post-metadata">

**Author:** ![Amir\_Faramarzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amir_faramarzi/32/92919_2.png) [@Amir\_Faramarzi](https://discuss.elastic.co/u/Amir_Faramarzi)\
**Post date:** [January 22, 2022, 6:16am UTC](https://discuss.elastic.co/t/some-words-are-not-searched-by-elasticsearch/295100/5 "2022-01-22T06:16:41Z")

</div>

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:** [February 19, 2022, 6:16am UTC](https://discuss.elastic.co/t/some-words-are-not-searched-by-elasticsearch/295100/6 "2022-02-19T06:16:45Z")

</div>

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