Lucene SORT does a sort on entire index..how do I filter SORT?

2009-08-21 Thread javaguy44
Hi, I'm currently looking at sorting in lucene, and to get started I took a look at the distance sorting example from the Lucene in Action book. Working through the test DistanceSortingTest, I've noticed that performing the SORT ends up sorting the whole index! To test this I did the following:

Re: Lucene SORT does a sort on entire index..how do I filter SORT?

2009-08-21 Thread javaguy44
rting applied against it before the document filter even hits. Is there no way to limit the sorting to only the documents that were found in the query? Thanks Jason Rutherglen-2 wrote: > > Take a look at contrib/spatial. > > On Fri, Aug 21, 2009 at 7:00 AM, javaguy44 wrote: &g

Re: Lucene SORT does a sort on entire index..how do I filter SORT?

2009-08-27 Thread javaguy44
Fri, Aug 21, 2009 at 4:09 PM, javaguy44 wrote: >> >> Hi Jason, >> >> Thanks for the advice. >> >> However I was just working through the example.  I actually don't want to >> search on numbers / dates / geo etc and was looking at custom sorting. >&g