I have an index with analyzer settings as shown below..
{
"settings": {
"analysis": {
"analyzer": {
"default": { "type": "english" },
"ar": { "type": "arabic" },
"hy":{ "type": "armenian" },
...
}
}
}
}
and a type mapping as shown below
{
"type1" : {
"_analyzer" : {
"path" : "language"
},
"properties" : {
"id" : { "type" : "string", "index" : "not_analyzed" },
"name" : { "type" : "string" },
"language" : { "type" : "string", "index" : "not_analyzed" }
}
}
}
Language can be any language and it might not have a valid anlyzer mapping
too... so my question is "is there anyway we can specify settings such that
ElasticSearch uses 'default' analyzer when there is no matching analyzer
found?" currently i am getting "No analyzer found" error message..
I could actually list out all of the languages and define an analyzer for
each of them but in our case the language list keep changing... it would
nice to have to have a default analyzer when there is NO matching analyzer.
I would really appreciate any suggestions.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.