有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

TopCoreDocCollector类型中的java方法create(int,int)不能用于参数(int,boolean)

目前我正在与Apache Lucene合作,我在本节中遇到错误:

TopScoreDocCollector collector = TopScoreDocCollector.create(hitsPerPage, true);

上面写着:

"The method create (int, int) in the type TopScoreDocCollector is not capable for the arguments (int, boolean)"

这是我的完整代码,我从HelloLucene.java得到了这个,稍加修改

我使用Eclipse和ApacheLucene 8.4.0。我不知道,因为我太困惑了。谢谢


共 (1) 个答案