Hello,
I was able to create an analyzer and use it on a single Index. Now, I would like to apply this to an Index template, so that whenever a new index (with Date attached to it) is created, this analyzer can be applied.
When trying to create the template it is giving me an error. Clearly something I am doing is not correct, but just could not figure out what..
PUT _template/textstrings
{
"index_patterns": ["*event.abc.v1*"],
"settings": {
"index": {
"analysis": {
"filter": {
"ngram_filter": {
"type": "nGram",
"min_gram": "3",
"max_gram": "20"
}
},
"analyzer": {
"title_analyzer": {
"type" : "custom",
"tokenizer": "standard",
"filter": ["ngram_filter"]
}
}
}
}
},
"mappings": {
"doc": {
"properties": {
"content": {
"properties": {
"title": {
"type": "text",
"analyzer": "title_analyzer"
}
}
}
}
}
}
}
The error I receive is the following:
{
"error": {
"root_cause": [
{
"type": "not_x_content_exception",
"reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
}
],
"type": "not_x_content_exception",
"reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
},
"status": 500
}
Thanks to take a look.
Best regards