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.
使用StandardAnalyzer,我的 Lucene 也包含数字项(即“200”)。所以我的索引中的术语数太大了。 有谁知道是否存在丢弃数字术语的分析器或标记器? 如果没有,有什么简单的方法可以得到吗?
Antonio,我建议您尝试使用SimpleAnalyzer。
如果这对您不起作用,您可能必须编写自己的分析器。