lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: lucene sort error - there are more terms than documents in field ....
Date Tue, 13 Jul 2004 23:28:54 GMT

On Jul 13, 2004, at 7:10 PM, MATL (Mats Lindberg) wrote:

> Hello.
> I am using:
> import
>  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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message