# Error: Unknown key for a VALUE\_STRING in \[analyzer\]

**URL:** <https://discuss.elastic.co/t/error-unknown-key-for-a-value-string-in-analyzer/286105>\
**Category:** Elasticsearch\
**Created:** [October 7, 2021, 8:07am UTC](https://discuss.elastic.co/t/error-unknown-key-for-a-value-string-in-analyzer/286105 "2021-10-07T08:07:04Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 7, 2021, 10:36am UTC](https://discuss.elastic.co/t/error-unknown-key-for-a-value-string-in-analyzer/286105/5 "2021-10-07T10:36:31Z")

</div>

> [@Drsaud](#):
>
> I read about search\_analyzer and I want to implement it in my search query I didn't follow a documentation because I didn't find one that do exact as I want.

Here it is: [search\_analyzer | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-analyzer.html)  
There's a full example.

> [@Drsaud](#):
>
> The full problem is I'm new to Elasticsearch and I'm trying to do terms query, I found out that when I try to search for a term that consist of two words and on of these words are common it will not be specifc and the reason of that is the field type is text. I try to re mapping it and reindex it and it didn't work, so now I try if I can apply the search analyzer keyword

I'd recommend to provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script is something anyone can **copy and paste in Kibana dev console** , click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

_[View the full topic](https://discuss.elastic.co/t/error-unknown-key-for-a-value-string-in-analyzer/286105)._
