elasticsearch,nest,completion,.net,elasticsearch,Nest,Completion" /> elasticsearch,nest,completion,.net,elasticsearch,Nest,Completion" />

.net 关键字分析器破坏的弹性搜索建议类型

.net 关键字分析器破坏的弹性搜索建议类型,.net,elasticsearch,nest,completion,.net,elasticsearch,Nest,Completion,productIndexAnalyzer已更改,我添加了一个土耳其语\u关键字分析器 我用客户机为结果编制了如下索引。它被设置为建议完成类型 "suggest": { "type": "completion", "analyzer": "simple", "payloads": true, "preserve_separators": true, "pres

productIndexAnalyzer已更改,我添加了一个土耳其语\u关键字分析器 我用客户机为结果编制了如下索引。它被设置为建议完成类型

"suggest": {
              "type": "completion",
              "analyzer": "simple",
              "payloads": true,
              "preserve_separators": true,
              "preserve_position_increments": true,
              "max_input_length": 20
           },

我使用的是NEST 1.7.0版和Elasticsearch 1.7.3版

您使用的是哪种版本的NEST,您使用的是哪种版本的Elasticsearch?我使用的是NEST 1.7.0版和Elasticsearch 1.7.3版@RussCamHow,您是如何更新
产品索引分析器的定义的
(要包括
土耳其语关键字
)?我添加了“土耳其语关键字”过滤到productIndexAnalyzer以更新@RussCamNo,我的意思是你是如何执行更新的?在你的问题中,你没有显示你是如何更新的。你是关闭索引,应用分析器更改,然后再次打开索引吗?当你应用更改时,你是否也再次发送映射?如果你可以显示一个完整、简洁的e举一个你正在做的事情的例子,这真的很有帮助:)
"suggest": {
              "type": "completion",
              "analyzer": "simple",
              "payloads": true,
              "preserve_separators": true,
              "preserve_position_increments": true,
              "max_input_length": 20
           },
CustomAnalyzer productIndexAnalyzer = new CustomAnalyzer
        {
            Tokenizer = "standard",
            Filter = new List<string> { TURKISH_LOWERCASE, "apostrophe", "asciifolding", ENGRAM_FILTER, "turkish_keywords" }
        };
"suggest": {
              "properties": {
                 "input": {
                    "type": "string"
                 },
                 "output": {
                    "type": "string"
                 },
                 "weight": {
                    "type": "long"
                 }
              }
           }