# Elasticsearch 1.3.1 not\_analysed problem

**URL:** <https://discuss.elastic.co/t/elasticsearch-1-3-1-not-analysed-problem/21378>\
**Category:** Elasticsearch\
**Created:** [December 23, 2014, 11:35pm UTC](https://discuss.elastic.co/t/elasticsearch-1-3-1-not-analysed-problem/21378 "2014-12-23T23:35:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalyan\_Srinivas](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Kalyan\_Srinivas](https://discuss.elastic.co/u/Kalyan_Srinivas)\
**Post date:** [December 23, 2014, 11:35pm UTC](https://discuss.elastic.co/t/elasticsearch-1-3-1-not-analysed-problem/21378/1 "2014-12-23T23:35:29Z")

</div>

HI All  
I am having a very weird problem with fields that are configured as  
not\_analysed for some reason the value is being tokenised even when i have  
the field configured as not\_analyzed i am sure i am missing something very  
simple i just cant seem to figure out what,this is how my mapping looks like  
"settings": {  
"number\_of\_shards": 5,  
"number\_of\_replicas": 2  
},  
"mappings": {  
"story": {  
"properties": {  
"section": {  
"type": "string",  
"index": "not\_analyzed"  
}  
}  
}  
}  
curl -XPOST localhost:9200/my\_index -d @mapping.json

when i index data

curl -XPOST localhost:9200/my\_index/story -d '{

"section": "fast-forward"

}'  
and i look at  
[http://localhost:9200/my\_index/\_termlist](http://localhost:9200/my_index/_termlist)  
i see it as individual terms.i know i am missing something simple cant  
figure out what it is,somebody please help

Kalyan

--  
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/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [December 24, 2014, 3:33am UTC](https://discuss.elastic.co/t/elasticsearch-1-3-1-not-analysed-problem/21378/2 "2014-12-24T03:33:39Z")

</div>

You should check that your mapping has been applied.

GET my\_index/store/\_mapping

David

> Le 24 déc. 2014 à 00:35, Kalyan Srinivas [kalyan.kuram@gmail.com](mailto:kalyan.kuram@gmail.com) a écrit :
> 
> HI All  
> I am having a very weird problem with fields that are configured as not\_analysed for some reason the value is being tokenised even when i have the field configured as not\_analyzed i am sure i am missing something very simple i just cant seem to figure out what,this is how my mapping looks like  
> "settings": {  
> "number\_of\_shards": 5,  
> "number\_of\_replicas": 2  
> },  
> "mappings": {  
> "story": {  
> "properties": {  
> "section": {  
> "type": "string",  
> "index": "not\_analyzed"  
> }  
> }  
> }  
> }  
> curl -XPOST localhost:9200/my\_index -d @mapping.json
> 
> when i index data  
> curl -XPOST localhost:9200/my\_index/story -d '{
> 
> "section": "fast-forward"
> 
> }'
> 
> and i look at  
> [http://localhost:9200/my\_index/\_termlist](http://localhost:9200/my_index/_termlist)  
> i see it as individual terms.i know i am missing something simple cant figure out what it is,somebody please help
> 
> ## Kalyan
> 
> 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/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/560605D1-68D0-4925-8465-0B9324DE783A%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/560605D1-68D0-4925-8465-0B9324DE783A%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Kalyan\_Srinivas](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Kalyan\_Srinivas](https://discuss.elastic.co/u/Kalyan_Srinivas)\
**Post date:** [December 24, 2014, 5:25am UTC](https://discuss.elastic.co/t/elasticsearch-1-3-1-not-analysed-problem/21378/3 "2014-12-24T05:25:45Z")

</div>

Thanks David,i solved this problem by adding  
curl -XPUT localhost:9200/my\_index -d '@mapping.json'  
replace POST with PUT and added single-quote on the file name and  
everything is working as expected,its bizarre but i guess i wasnt doing  
this right before

Kalyan

On Tuesday, December 23, 2014 7:34:07 PM UTC-8, David Pilato wrote:

> You should check that your mapping has been applied.
> 
> GET my\_index/store/\_mapping
> 
> David
> 
> Le 24 déc. 2014 à 00:35, Kalyan Srinivas \<[kalyan...@gmail.com](mailto:kalyan...@gmail.com)  
> \<javascript:\>\> a écrit :
> 
> HI All  
> I am having a very weird problem with fields that are configured as  
> not\_analysed for some reason the value is being tokenised even when i have  
> the field configured as not\_analyzed i am sure i am missing something very  
> simple i just cant seem to figure out what,this is how my mapping looks like  
> "settings": {  
> "number\_of\_shards": 5,  
> "number\_of\_replicas": 2  
> },  
> "mappings": {  
> "story": {  
> "properties": {  
> "section": {  
> "type": "string",  
> "index": "not\_analyzed"  
> }  
> }  
> }  
> }  
> curl -XPOST localhost:9200/my\_index -d @mapping.json
> 
> when i index data
> 
> curl -XPOST localhost:9200/my\_index/story -d '{
> 
> "section": "fast-forward"
> 
> }'  
> and i look at  
> [http://localhost:9200/my\_index/\_termlist](http://localhost:9200/my_index/_termlist)  
> i see it as individual terms.i know i am missing something simple cant  
> figure out what it is,somebody please help
> 
> Kalyan
> 
> --  
> 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/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/8c0f52cc-11aa-46a0-97a3-807b968ea789%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8c0f52cc-11aa-46a0-97a3-807b968ea789%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:42am UTC](https://discuss.elastic.co/t/elasticsearch-1-3-1-not-analysed-problem/21378/4 "2017-07-06T00:42:04Z")

</div>


