Re: lucene 2.4 sorting slowness

2008-12-18 Thread Chris Salem
for any damage caused by any virus transmitted by this email. Main Sequence Technologies, Inc. 4420 Sherwin Rd. Willoughby OH 44094 www.pcrecruiter.net - Original Message - To: java-user@lucene.apache.org From: Michael McCandless Sent: 12/17/2008 4:46:18 PM Subject: Re: lucene 2.4 sort

Re: lucene 2.4 sorting slowness

2008-12-17 Thread Erick Erickson
Are you measuring only the time to execute the searcher.search line or are you measuring the time it takes to iterate the Hits object? The reason I ask is that something like for (int idx = 0; idx < hits.length(); ++idx) { } will re-execute the query every 100 documents examined or so. For ex

Re: lucene 2.4 sorting slowness

2008-12-17 Thread Michael McCandless
Are you warming the searcher first, and then testing the sort performance? (The first query is slow because it populates the FieldCache, internally, which is then reused for subsequent queries as long as you don't close that reader/searcher). Mike Chris Salem wrote: Hello, I have an i