Hello! In the search hit a lot,I want to hit the 2000 docs return data immediately.
I can not find such a method of lucene. I have tried: public int score(Collector collector,int max){ collector.setScorer(this); int doc; int count; while((doc = nextDoc())!= NO_MORE_DOCS){ ++count; collector.collect(doc); if(count >=max){break;} } } Can I do this?