Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

远程停词词库怎么配置 #53

Closed
beijingcn opened this issue Sep 29, 2022 · 1 comment
Closed

远程停词词库怎么配置 #53

beijingcn opened this issue Sep 29, 2022 · 1 comment

Comments

@beijingcn
Copy link

No description provided.

@tenlee2012
Copy link
Owner

抱歉,本插件不支持停用词配置以及远程停用词词库。
如有需要,请使用es原生提供的停用词功能。
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-stop-tokenfilter.html

PUT /my-index-000001
{
  "settings": {
    "analysis": {
      "analyzer": {
        "default": {
          "tokenizer": "whitespace",
          "filter": [ "my_custom_stop_words_filter" ]
        }
      },
      "filter": {
        "my_custom_stop_words_filter": {
          "type": "stop",
          "stopwords_path": "停用词路径,每个词一行"
          "ignore_case": true
        }
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants