Re: Question regarding SolrIndexSearcher implementation

2015-02-02 Thread Erick Erickson
The problem is that if you want only docs 200-250, how do you know whether any particular doc will wind up in in positions 0-199? You process a doc and find it's score is X. That has no relation to the score of the _next_ doc you score. Or the previous one for that matter. So to find the doc in

RE: Question regarding SolrIndexSearcher implementation

2015-02-02 Thread Markus Jelsma
From memory: there are different methods in SolrIndexSearcher for reason. It has to do with paging and sorting. Whenever you sort on a simple field, you can easily start at a specific offset. The problem with sorting on score, is that score has to be calculated for all documents matching query.