I use Lucene and Compass on it and I have a problem:
try {
CompassHits hits = compassQuery.hits();
for (CompassHit compassHit : hits) {
if (results.size() >= maxResults) {
Log.info(this, "Number of results exceeded %,d for query %s", maxResults, query);
break;
} else {
results.add((T) compassHit.getData());
}
}
}
When the data is geting by compassHit.getData());
and it's a 100 hit it re-execute the search, is there any possibility to change it to 200 or more?
EDIT:
From wiki apache org:
"Iterating over all hits is slow for two reasons. Firstly, the search() method that returns a Hits object re-executes the search internally when you need more than 100 hits".
And my question is there opportunity to change this value "100" to "200"? but important is that I use compass nor a raw Lucene.