# Issue with facets and not\_analyzed in mapping

**URL:** <https://discuss.elastic.co/t/issue-with-facets-and-not-analyzed-in-mapping/16137>\
**Category:** Elasticsearch\
**Created:** [March 4, 2014, 10:05am UTC](https://discuss.elastic.co/t/issue-with-facets-and-not-analyzed-in-mapping/16137 "2014-03-04T10:05:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yury\_Kisliak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yury_kisliak/32/1755_2.png) [@Yury\_Kisliak](https://discuss.elastic.co/u/Yury_Kisliak)\
**Post date:** [March 4, 2014, 10:05am UTC](https://discuss.elastic.co/t/issue-with-facets-and-not-analyzed-in-mapping/16137/1 "2014-03-04T10:05:55Z")

</div>

Hello, could u please explain what is wrong.  
[http://pastebin.com/dMZudCsj](http://pastebin.com/dMZudCsj)  
my config:

...  
analysis:  
analyzer:  
default:  
type: custom  
tokenizer: standard  
filter: [mam\_ngram, lowercase]  
filter:  
mam\_ngram:  
type: nGram  
side: front  
min\_gram: 3  
max\_gram: 4  
token\_chars: [letter, digit]

...

it's a query and ES output.  
My mapping has not\_analyzed but seems it does not work.  
How to check where is issue ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7508f929-1e8b-47fa-b91f-3fd7faf6332e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7508f929-1e8b-47fa-b91f-3fd7faf6332e%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [March 4, 2014, 7:29pm UTC](https://discuss.elastic.co/t/issue-with-facets-and-not-analyzed-in-mapping/16137/2 "2014-03-04T19:29:00Z")

</div>

Judging by the output, the genre field is analyzed using the default  
analyzer. Others can help debug if you provide your mapping. It is best to  
use the get mapping API [1] since it shows what you actually have instead  
of what you supplied at index creation.

Depending on your use case, you might benefit from using multi-fields. [2]

[1]

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

[2]

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Ivan

On Tue, Mar 4, 2014 at 2:05 AM, Yury Kisliak [fas.ysk@gmail.com](mailto:fas.ysk@gmail.com) wrote:

> Hello, could u please explain what is wrong.  
> [http://pastebin.com/dMZudCsj](http://pastebin.com/dMZudCsj)  
> my config:
> 
> ...  
> analysis:  
> analyzer:  
> default:  
> type: custom  
> tokenizer: standard  
> filter: [mam\_ngram, lowercase]  
> filter:  
> mam\_ngram:  
> type: nGram  
> side: front  
> min\_gram: 3  
> max\_gram: 4  
> token\_chars: [letter, digit]
> 
> ...
> 
> it's a query and ES output.  
> My mapping has not\_analyzed but seems it does not work.  
> How to check where is issue ?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/7508f929-1e8b-47fa-b91f-3fd7faf6332e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7508f929-1e8b-47fa-b91f-3fd7faf6332e%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCYZ3WBxpy%3DLPAB3r\_bMG7TErq\_gA2TAVMjBgSY4ge6Cw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCYZ3WBxpy%3DLPAB3r_bMG7TErq_gA2TAVMjBgSY4ge6Cw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Yury\_Kisliak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yury_kisliak/32/1755_2.png) [@Yury\_Kisliak](https://discuss.elastic.co/u/Yury_Kisliak)\
**Post date:** [March 4, 2014, 7:36pm UTC](https://discuss.elastic.co/t/issue-with-facets-and-not-analyzed-in-mapping/16137/3 "2014-03-04T19:36:22Z")

</div>

Thanks Ivan, I've fixed issue. It was just in wrong mapping.

On Tuesday, March 4, 2014 8:29:00 PM UTC+1, Ivan Brusic wrote:

> Judging by the output, the genre field is analyzed using the default  
> analyzer. Others can help debug if you provide your mapping. It is best to  
> use the get mapping API [1] since it shows what you actually have instead  
> of what you supplied at index creation.
> 
> Depending on your use case, you might benefit from using multi-fields. [2]
> 
> [1]  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-mapping.html)
> 
> [2]  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_multi_fields.html)
> 
> --  
> Ivan
> 
> On Tue, Mar 4, 2014 at 2:05 AM, Yury Kisliak \<[fas...@gmail.com](mailto:fas...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hello, could u please explain what is wrong.  
> > [http://pastebin.com/dMZudCsj](http://pastebin.com/dMZudCsj)  
> > my config:
> > 
> > ...  
> > analysis:  
> > analyzer:  
> > default:  
> > type: custom  
> > tokenizer: standard  
> > filter: [mam\_ngram, lowercase]  
> > filter:  
> > mam\_ngram:  
> > type: nGram  
> > side: front  
> > min\_gram: 3  
> > max\_gram: 4  
> > token\_chars: [letter, digit]
> > 
> > ...
> > 
> > it's a query and ES output.  
> > My mapping has not\_analyzed but seems it does not work.  
> > How to check where is issue ?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/7508f929-1e8b-47fa-b91f-3fd7faf6332e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7508f929-1e8b-47fa-b91f-3fd7faf6332e%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3227db8d-3af5-417c-811a-664e43ffe944%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3227db8d-3af5-417c-811a-664e43ffe944%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 1:45am UTC](https://discuss.elastic.co/t/issue-with-facets-and-not-analyzed-in-mapping/16137/4 "2017-07-06T01:45:47Z")

</div>

Closed on July 6, 2017, 1:45am UTC


