Unable to update settings regarding analyzers

Hi,
I have create cutom analyzer but unfortunately i got some error while using it.but I am not able to open index after getting error.
code in dev tool in kibana:

PUT /historical/_settings
 {
   "settings" : {
     "analysis" : {
       "analyzer" : {
         "exactish" : {
           "type" : "custom",
           "tokenizer" : "keyword",
           "filter":"hist_lowercase_filter"
         },
         "list_source_type" : {
          
           "type" : "custom",
           "tokenizer" : "standard",
           "filter":"[hist_ascii_folding_filter,lowercase]"
         },
         "text_general_likely" : {
           "type" : "custom",
           "tokenizer" : "standard",
           "filter":"[hist_stop_filter,hist_synonym_filter,hist_ascii_folding_filter]"
         }
       }
     }
   }
 }

It is giving error in filter inside list_source_type analyzer:

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "Custom Analyzer [list_source_type] failed to find filter under name [[lowercase]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "Custom Analyzer [list_source_type] failed to find filter under name [[lowercase]"
  },
  "status": 400
}

You need to have quotes around the array elements, not the entire array.

For example:

"filter":"[hist_ascii_folding_filter,lowercase]"

Should be:

"filter": [ "hist_ascii_folding_filter", "lowercase" ]

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.