currently i am working with Apache Lucene and i get error in this section:
TopScoreDocCollector collector = TopScoreDocCollector.create(hitsPerPage, true);
It says:
"The method create (int, int) in the type TopScoreDocCollector is not capable for the arguments (int, boolean)"
And this is my full code, i got this from HelloLucene.java with a little modification.
I work with Eclipse and Apache Lucene 8.4.0. I have no idea because im too confused. Thank you.
This simply means exactly what it says. In Apache Lucene 8.4.0 there is not a create-Method which takes (int,boolean) as input. Check the API for your version: http://lucene.apache.org/core/8_4_0/core/org/apache/lucene/search/TopScoreDocCollector.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.