Re: absence of searchAfter method with Collector parameter in Lucene IndexSearcher

2014-06-08 Thread Kailash Budhathoki
Thank you Hoss. I was exactly looking for sth like TopFieldCollector.create(...). Basically my objective is to sort the document by the document number(I have read only index with only one segment & also because of some other requirements). Here's what I did, // create a sort field based on docum

Re: absence of searchAfter method with Collector parameter in Lucene IndexSearcher

2014-06-06 Thread Chris Hostetter
: I was wondering why there is no search method in lucene Indexsearcher to : search after last reference by passing collector. Say a method with : signature like searchAfter(Query query, ScoreDoc after, Collector results). searchAfter only makes sense if there is a Sort involved -- either explic

absence of searchAfter method with Collector parameter in Lucene IndexSearcher

2014-06-06 Thread Kailash Budhathoki
Hi, I was wondering why there is no search method in lucene Indexsearcher to search after last reference by passing collector. Say a method with signature like searchAfter(Query query, ScoreDoc after, Collector results). For normal search there are two ways to search; one by passing the collector