indexing - elasticsearch not_analyzed doesn't work -


why elastic search not_analyzed doesn't work trying solve

the mapping visible here: http://i.stack.imgur.com/dgj7a.png

curl -xget 'http://localhost:9200/gb/_analyze?field=tag?pretty' -d 'black-cats' curl -xget 'http://localhost:9200/gb/_analyze?field=tweet?pretty' -d 'black-cats'  results same {     "tokens": [{         "token": "black",         "start_offset": 0,         "end_offset": 5,         "type": "<alphanum>",         "position": 1     }, {         "token": "cats",         "start_offset": 6,         "end_offset": 10,         "type": "<alphanum>",         "position": 2     }] } 

you have url wrong, i.e. have 2 ? characters, 1 before pretty should ampersand &, try 1

curl -xget 'http://localhost:9200/gb/_analyze?field=tag&pretty' -d 'black-cats'                                                        ^                                                        |                                           should &, not ? 

Comments