lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviran" <>
Subject RE: problem with SortField[] in search method (newbie)
Date Wed, 15 Sep 2004 17:35:29 GMT
You can only sort on indexed field. (even more than that, it'll work
properly only on Untokenized fields, ie keyword).


-----Original Message-----
From: Wermus Fernando [] 
Sent: Wednesday, September 15, 2004 13:13 PM
Subject: problem with SortField[] in search method (newbie)

My search looks up the whole entities. My entities are accounts, contacts,
tasks, etc. My searching looks up a group of entity's fields. This works
fine despite, I don't have indexed any entity in a document. But If I sort
by some fields from different entities, I get the following error.
field "shortName" does not appear to be indexed
The account's field I have indexed are
and I order by
without  any order
it works fine.
I don't understand the behavior because If I don't order the searching and I
don't have any document indexed, It works fine, but If I add an order I get
a runtimeException and I can't catch the exception  to solve the problem.
The only solution it's to index the whole fields' entitities once in a
document, but for me it's a patch.
Any idea,  it could help me out.
Thanks in advance.

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

View raw message