lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Sorting issues
Date Fri, 27 Jun 2008 18:46:52 GMT
Actually, I do a global search and the order comes out: 1, 2, 8, 3, 5, 6, 
7,8, 4, 9.  I'm having trouble finding in the code where the sort actually 
gets applied.  Can you help me out there?


"Erick Erickson" <> 
06/27/2008 12:19 PM
Please respond to


Re: Sorting issues

That's surprising. Could you post a brief example of your
index and search code?

It sounds like you're saying
docs 1, 2, 3 all have category aaa
docs 4, 5, 6 all have category bbb
docs 7, 8, 9 all have category ccc

But if you search for category:bbb
you don't get docs 4, 5, and 6

Is this a fair statement of the issue?


On Fri, Jun 27, 2008 at 11:44 AM, <> wrote:

> I just implemented a sorting feature on our application where the user 
> change the sort on a query and reexecute the search.  It works fine on
> text fields where most of the documents have different field values.
> However, on fields that are categories, that is, there are only four
> distinct values for the category field and
> all of the documents fit into a distinct category, the results are not 
> the sorted values.
> All of the sort fields are untokenized and stored. and each document has
> only one value for the sorted field.
> Are there any known issues (Lucene 2.3.0)?  How can I go about debugging
> this? I have tried Luke, also I have the Lucene source.
> Bob Hastings
> Ancept Inc.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message