Ignoring case for elision step of french analyzer

社会主义新天地 提交于 2019-12-25 03:39:26

问题


ElasticSearch Nest seems to be missing the elision articles_case flag as discussed in this question: ArticleCase missing from nest elision filter?

I noticed the official French analyzer has a lowercase filter immediately after the french_elision filter like so:

  "analyzer": {
    "rebuilt_french": {
      "tokenizer":  "standard",
      "filter": [
        "french_elision",  // <==== Has the ignore case property set
        "lowercase",
        "french_stop",
        "french_keywords",
        "french_stemmer"
      ]
    }
  }

Could I placed the lowercase step before the elision one and get the same behavior as if I had the articles_case property set? Or would that result in something different/bad compared to the way the official french analyzer is built?

来源:https://stackoverflow.com/questions/54656392/ignoring-case-for-elision-step-of-french-analyzer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!