lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Biyyala, Shishir (Contractor)" <>
Subject Question regarding SolrIndexSearcher implementation
Date Mon, 02 Feb 2015 21:21:10 GMT

I did not know what the right mailing list would be (java-user vs solr-user), so mailing both.

My group uses solr/lucene, and we have custom collectors.

I stumbled upon the implementation of and saw this :
 (line 1676)

" TopDocs topDocs = topCollector.topDocs(0, len);" the topDocs "start" value is always being
hardcoded to 0;

What that is leading to is creating of excessive topDocs that the application actually needs;
My application can potentially be faced with deep pagination and we do not use queryresults

If I request for 200-250 docs,

I was expecting start=199, howMany=51;
But turns out that start=0 (always) and howMany=250

Any reasons why start value is hardcoded to 0? Please suggest. It is potentially impacting
performance of our application.

Thanks much,
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message