You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "MATL (Mats Lindberg)" <ma...@nnit.com> on 2004/07/14 01:10:24 UTC
lucene sort error - there are more terms than documents in field ....
Hello.
I am using:
import org.apache.lucene.search.Sort
when searching an index, but for some reasons, in some indexes i get
this error:
caught a class java.lang.RuntimeException
with message: there are more terms than documents in field
<TheFieldIAmSortingBy>
does anybody know what causes this, or how to solve it.
Best regards,
Mats Lindberg
Re: lucene sort error - there are more terms than documents in field ....
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jul 13, 2004, at 7:10 PM, MATL (Mats Lindberg) wrote:
> Hello.
>
> I am using:
> import org.apache.lucene.search.Sort
>
> when searching an index, but for some reasons, in some indexes i get
> this error:
>
> caught a class java.lang.RuntimeException
> with message: there are more terms than documents in field
> <TheFieldIAmSortingBy>
>
> does anybody know what causes this, or how to solve it.
You may only have a single term for each document. How is the field
indexed you're sorting by? Field.Keyword is the only guaranteed safe
one, and your analyzer will determine how the other fields are treated.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org