Re: sorting issue with un-tokenized field

2007-01-17 Thread Erick Erickson
I'd look at a couple of things: 1> are you absolutely sure you didn't store bookTitles more than once? i.e. doc = new DOcument(); doc.add(new Term("bookTitles", .)); doc.add(new Term("bookTitles", .)); writer.add(doc); 2> When you built your index, did you append to an old one or replace

Re: sorting issue with un-tokenized field

2007-01-17 Thread Doron Cohen
For sorting by, that field must be added to the document exactly *once*, as UN_TOKENIZED. This way there would be at most one token in that field for each document. If, for instance, that field is added twice to the document, with same or different values, then although UN_TOKENIZED is specified i

Re: sorting issue with un-tokenized field

2007-01-17 Thread moraleslos
Oops, accidently pressed the ENTER key before doing anything ;-) I have a field called "bookTitle" that I specified as UN_TOKENIZED and STORED in the index (i.e. keyword). However, when I do a sort on this field during a search I get this error: Exception occurred during search: java.lang.Runt