Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

在配置synonyms碰到问题 #49

Open
cjymz886 opened this issue Mar 20, 2020 · 4 comments
Open

在配置synonyms碰到问题 #49

cjymz886 opened this issue Mar 20, 2020 · 4 comments

Comments

@cjymz886
Copy link

在创建synonyms词库,一直出现问题:
image
求大佬解答,谢谢~

@sing1ee
Copy link
Owner

sing1ee commented Mar 25, 2020

@cjymz886 什么问题

@passerbythesun
Copy link

@sing1ee @cjymz886 elastic/elasticsearch#28838 同样遇到这个问题,貌似暂时无解

@GumpCode
Copy link

GumpCode commented Jun 17, 2021

@sing1ee 我也遇到了同样的问题,当我使用下面配置来设置同义词字典时,出现和上面一样的bug

  "settings": {
    "analysis": {
      "filter": {
        "jieba_stop": {
          "type":        "stop",
          "stopwords_path": "stopwords/stopwords.txt"
        },
        "jieba_synonym": {
          "type":        "synonym",
          "synonyms_path": "synonyms/synonyms.txt"
        }
      },
      "analyzer": {
        "my_ana": {
          "tokenizer": "jieba_index",
          "filter": [
            "lowercase",
            "jieba_stop",
            "jieba_synonym"
          ]
        }
      }
    }
  }
}```  

  

@zyokia
Copy link

zyokia commented Jan 26, 2024

这个问题有解吗?有人说把jieba_index换成jieba_search

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

No branches or pull requests

5 participants