在Elasticsearch.net的Nest上使用stopword_路径的停止过滤器

在Elasticsearch.net的Nest上使用stopword_路径的停止过滤器,nest,Nest,如何使用停止过滤器。。。使用stopword_路径?? 我可以在邮递员中使用停止过滤器 这是我的代码 "analysis" : { "analyzer" : { "ilhee_Custom" : { "type": "custom", "tokenizer" : "whitespace", "filter" : ["lowercase", "my_stoplist"]

如何使用停止过滤器。。。使用stopword_路径?? 我可以在邮递员中使用停止过滤器

这是我的代码

    "analysis" : {
    "analyzer" : {
        "ilhee_Custom" : {
            "type": "custom",
                "tokenizer" : "whitespace",
                "filter" : ["lowercase", "my_stoplist"]
                 }
            },
    "filter" : {
         "my_stoplist" : {
            "type" : "stop",
                "stopwords_path" : "stopword_list.txt",
                    "remove_trailing" : true
                    }
                }
            }
    }

我找到了答案!!是……对吗?
那就行了。您还可以在
TokenFiltersDescriptor

var createIndexResponse = client.CreateIndex("ilhee", c => c
    .Settings(s => s
        .Analysis(a => a
            .Analyzers(ad => ad
                // give the custom analyzer a name
                .Custom("ilhee_Custom", ca => ca
                    .Tokenizer("standard")
                    .Filters("lowercase", "stop", "standard", "snowball", "my_stoplist")
                )
            )
            .TokenFilters(s1 => s1
                .Stop("my_stoplist", tf => tf
                    .StopWordsPath("stopword_list.txt")
                )
            )
        )   
    )
);

是的,我知道配置位置!我看到了elasticsearch文档页面!非常感谢。
var createIndexResponse = client.CreateIndex("ilhee", c => c
    .Settings(s => s
        .Analysis(a => a
            .Analyzers(ad => ad
                // give the custom analyzer a name
                .Custom("ilhee_Custom", ca => ca
                    .Tokenizer("standard")
                    .Filters("lowercase", "stop", "standard", "snowball", "my_stoplist")
                )
            )
            .TokenFilters(s1 => s1
                .Stop("my_stoplist", tf => tf
                    .StopWordsPath("stopword_list.txt")
                )
            )
        )   
    )
);