Re: Field sorting when same doc has multiple values for a field

2008-12-22 Thread Erick Erickson
You're off in undefined territory. From the docs for the Sort class: <<<...Documents must contain a single term in such a field, and the value of the term should indicate the document's relative position in a given sort order. The field must be indexed, but should not be tokenized, ...> Whatever

Field sorting when same doc has multiple values for a field

2008-12-22 Thread Andre Rubin
Hi all, Has anyone been through this issue? I have documents that have one or more values for the same field. For example: doc1 = new Document(); doc1.add(new Field("Letter"), "A", ...); doc1.add(new Field("Letter"), "C", ...); // doc1.add(other fields); //write to index Now I add another docum