Re: Help: About performance of search with sorting.

2011-12-20 Thread Erick Erickson
What are you specifying for your sort criteria? And what kind of field is it we're talking about here? Best Erick On Tue, Dec 20, 2011 at 8:45 AM, Qiurun wrote: > Dear all, > > I select some of docs that meet some criteria by using TopDocs search(Query > query, int n). Also It's easy to select

Help: About performance of search with sorting.

2011-12-20 Thread Qiurun
Dear all, I select some of docs that meet some criteria by using TopDocs search(Query query, int n). Also It's easy to select the docs that meet some query and sort by some field by using TopFieldDocs search(Query query, int n, Sort sort). As known, Lucene use field cache when sorting results b