Elasticsearch 1.3.1 not_analysed problem

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
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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 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
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5cf375a8-b63e-4aa9-8f62-0cb6e46ad890%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/560605D1-68D0-4925-8465-0B9324DE783A%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

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
<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
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 <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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8c0f52cc-11aa-46a0-97a3-807b968ea789%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.