[ELASTIC-22] Create Index: Filters defined for an Analyser are missing Created: 02/Feb/22  Updated: 02/Feb/22

Status: Open
Project: Elasticsearch
Component/s: None
Affects Version/s: 1.0.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: wolf bubenik Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 6.2.15, Java 11


Attachments: PNG File analyser-with-filter.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 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.


Generated at Mon Feb 12 01:46:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.