我正在尝试在ES映射中设置词干。我通过索引文档(de_analyzer)
传递了词干分析器的名称我观察到下面的映射正确地将词干术语添加到索引中,但现在我无法再搜索未经过干扰的术语。不返回任何匹配项。似乎只有词干术语被编入索引?
这是显示过滤器,索引分析器,搜索分析器和字段配置的索引配置。
我在监督什么?
谢谢!
{
"globalfashionmonitor": {
"template": "myindex*",
"settings": {
"index.number_of_shards": 5,
"default_search": "analyzer_search",
"analysis": {
"filter": {
"de_stem_filter": {
"type": "stemmer",
"name": "minimal_german"
}
}
},
"analyzer": {
"analyzer_search": {
"type": "custom",
"tokenizer": "icu_tokenizer",
"filter": [
"icu_folding"
]
},
"de_analyzer": {
"type": "custom",
"filter": [
"icu_normalizer",
"de_stop_filter",
"de_stem_filter",
"icu_folding"
],
"tokenizer": "icu_tokenizer"
}
},
"mappings": {
"items": {
"_analyzer": {
"path": "use_analyzer"
},
"properties": {
"summarizedArticle": {
"fields": {
"stemmed": {
"index_analyzer": "de_analyzer",
"type": "string",
"index": "analyzed"
}
},
"type": "string"
}
}
}
}
}
}
}