Elasticsearch Analyzer Inheritance -


let's have analyzer below.

                "custom_analyzer": {                     "type": "custom",                     "char_filter": [                         "html_strip"                     ],                     "filter": [                         "stemming_exclusion",                         "kstem"                     ],                     "tokenizer": "standard"                 } 

now want have custom analyzer 1 additional filter. this:

                "custom_analyzer": {                     "type": "custom",                     "char_filter": [                         "html_strip"                     ],                     "filter": [                         "stemming_exclusion",                         "kstem",                         "new_filter"                      ],                     "tokenizer": "standard"                 } 

is there way reuse previous custom_analyzer instead of copying again? example shortened 1 assume have many filters, char_filters etc.

thanks!

no, there's no way in es.

you can reuse character filters, token filters , tokenizers, quite thing, have declare each analyzer want use.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -