lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
Subject Re: Browse by Letter within a Category
Date Fri, 09 Jul 2004 08:33:39 GMT
On Friday 09 July 2004 04:27, O'Hare, Thomas wrote:

> Searcher.search("category:\"Products\" AND title:\"A*\"", new
> Sort("title"));

You can only sort on fields which are not tokenized I think. So add an extra 
field with the title, but untokenized, just for sorting. Also, "A*" might 
slow down the query execution so you might want to add another field which 
just contains the first letter so there's no need for the asterisk.

Regards
 Daniel


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


Mime
View raw message