Uploaded image for project: 'Elasticsearch'
  1. Elasticsearch
  2. ELASTIC-22

Create Index: Filters defined for an Analyser are missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.0.0
    • None
    • Magnolia 6.2.15, Java 11

    Description

      Steps to reproduce

      1. define an analyser with a filter
      2. create the inde
      3. check the created index settings on ES

      Expected results

      The analyser filter should be included in the analyser index settings od the ES server

      Actual results

      The analyser filter is missing on the ES server

      filter has not been transmitted to ES server:

      curl -iX PUT 'http://localhost:9200/persons?include_type_name=true' -d '{"mappings":{"persons":{"properties":{.....}}}},
      "settings":{
      "index":{
      "analysis":{
      "analyzer":{"name-suggestion-analyzer":{"type":"custom","tokenizer":"name-suggestion-tokenizer",
      
      !!!!! --->>> "filter":[],"char_filter":[]
      
      },
      "standard-lowercase-analyzer":{"type":"custom","tokenizer":"lowercase","filter":[],"char_filter":[]}},"tokenizer":{"name-suggestion-tokenizer":{"type":"edge_ngram","min_gram":2,"max_gram":12,"token_chars":[]}}},"number_of_shards":1,"number_of_replicas":1}}}'
      

      Workaround

      Development notes

      Implementation of AnalyzerItemDefinitionConfiguration does not match current node structure: Filters are sub-nodes of node "filter", not multi-value properties.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              wolf.bubenik wolf bubenik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD