Re: Sorting words

2006-12-21 Thread Erik Hatcher
On Dec 21, 2006, at 10:49 AM, wawa wrote: Thanks.. but how do I know whether the filed is tokenized or not? Look at how you indexed "operatingName". operatingName field contains name of stores. other fields contains a single word or numbers. Those are ok. But this filed contains words.

Re: Sorting words

2006-12-21 Thread wawa
Thanks.. but how do I know whether the filed is tokenized or not? I just used code to sort below: Query query =QueryParser.parse(contents, title, new StandardAnalyzer()); booleanQuery.add(query, true, false); hits= searcher.search(booleanQuery,new Sort("operatingName")); .. operat

Re: Sorting words

2006-12-21 Thread Erik Hatcher
Thie is probably due to you sorting by a tokenized field. Be sure you are sorting on an untokenized field! Erik On Dec 21, 2006, at 10:00 AM, wawa wrote: I have some problem to sort words. Somehow it sorts in strange way. sort result is below: ... BILLIARD & CAFE BIZIM CAFE BO