Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在Luke工具中使用PerFieldAnalyzerWrapper?对于一个字段,我们有KeywordAnalyzer和其他字段StandardAnalyzer,因此希望使用 Luke 工具中的 PerfieldAnalyzer 进行搜索,使用Lucene 4.2.0。可能吗?
可悲的是,没有办法在 Luke 中为一个字段使用不同的分析器。我建议编写简单的 Java 程序,该程序将打开现有索引,然后使用PerFieldAnalyzerWrapper进行搜索,因此您可以为所需字段指定所需的分析器。