You can set the global analyzer when you set the index. I guess that should
set the behavior of _all also.
curl -X PUT "localhost:9200/indexName" -d '{ "settings" : { "index" : {
"number_of_shards" : 2, "number_of_replicas" : 1 },
"analysis" : {"analyzer":{"my_analyzer" : {
"tokenizer" : "keyword" }}}
}}'
Also can you try with
index_analyzer : keyword
instead of just
"analyzer":"keyword"
Thanks
Vineeth
On Fri, Mar 23, 2012 at 7:58 PM, Runar Myklebust runar@myklebust.me wrote:
Hi, Im having a bit of trouble to set the analyzer for the _all - field to
"keyword", and "not_analyzed" isnt working either.In this gist, I have store data as showed, executes the query but I get no
results. If I execute query against the field "data_textfield" directly, I
get the result:Elasticsearch setting all-field to analyzer keyword · GitHub
mvh
Runar Myklebust