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 Sanyi <ne...@yahoo.com> on 2005/02/23 13:24:15 UTC

there are more terms than documents in field ...

Hi!

I'm indexing 99 documents, then I want to sort them by title, but Lucene throws:

there are more terms than documents in field "title"

I have no such problems with my other indices with a lot more documents.

How can I sort smaller indices by title?

Regards,
Sanyi


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: there are more terms than documents in field ...

Posted by Stanislav Jordanov <st...@sirma.bg>.
In order to sort by specific field
that field must be <stored, indexed, non-tokenized> (aka Keyword)
Perhaps your field is tokenized?


----- Original Message ----- 
From: "Sanyi" <ne...@yahoo.com>
To: <lu...@jakarta.apache.org>
Sent: Wednesday, February 23, 2005 2:24 PM
Subject: there are more terms than documents in field ...


> Hi!
>
> I'm indexing 99 documents, then I want to sort them by title, but Lucene
throws:
>
> there are more terms than documents in field "title"
>
> I have no such problems with my other indices with a lot more documents.
>
> How can I sort smaller indices by title?
>
> Regards,
> Sanyi
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org