【问题标题】:Lucene request : stemming with FrenchAnalyzer and QueryParser or TermQueryLucene 请求:使用 FrenchAnalyzer 和 QueryParser 或 TermQuery 进行词干
【发布时间】:2016-11-03 10:54:47
【问题描述】:

我需要使用词干提取功能执行请求。 当搜索词是“发明”时,必须返回这两个文档: “Ils inventèrent le feu” "L'invent est belle"

我使用 lucene 6.2.1,我的代码如下:

  • 索引是使用 IndexWriter 填充的 法语分析仪。
  • 搜索的字段是存储的文本字段。
  • 使用填充有 法语分析仪。

目前,如果搜索是“invent”,则文档会很好地返回,但不是“invent”。我是否缺少执行词干请求的内容?

谢谢你

【问题讨论】:

    标签: lucene stemming


    【解决方案1】:

    好的,

    描述的方法很好。

    实际上,“发明”源于“发明”,“发明者”源于“发明”。这就是困扰我的原因。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-19
      • 2012-06-22
      • 2019-04-28
      • 2015-02-20
      相关资源
      最近更新 更多