cuilll 2019-10-23 10:49 采纳率: 33.3%
浏览 359

elasticsearch 5.6.8 怎么使用 配置 停用词 ,去掉英文的冠词 a an the 这些。。。

在elasticsearch.yml 中配置

enabled_stop _filter =true; stop_path=“stop.dic”

报错 stop_path 不认识


  • 写回答

1条回答

  • 道友,且慢 2019-10-24 09:57
    关注

    PUT my_index
    {
    "settings": {
    "analysis": {
    "analyzer": {
    "my_stop_analyzer": {
    "type": "stop",
    "stopwords": ["the", "over"]
    }
    }
    }
    }
    }

    POST my_index/_analyze
    {
    "analyzer": "my_stop_analyzer",
    "text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
    }

    在stopwords 里配置你想要的停用词即可

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算