lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbesel <johnbe...@web.de>
Subject Re: Indexer search with filter and sort
Date Mon, 21 Jan 2013 13:28:43 GMT
I made  a Junit Test with some values. I sort values DESC and get following:

im sundheimer fort 1-9
krammwinkel/surkampstr.78
sundweg
bray-sur-seine-str. 1
bray-sur-seine-str. 1
berck-sur-mer-str. 1


this is not DESC, but also not ASC. what is this????
SortField field=new SortField(sortKey, SortField.STRING, true);
List<SortField> luceneSortFields = new ArrayList<SortField>();
luceneSortFields.add(field);

Sort sort = new Sort(luceneSortFields.toArray(new
SortField[luceneSortFields.size()]));
topDocs = indexSearcher.search(booleanQuery, Integer.MAX_VALUE, sort);

has anybody any Idea??
what is wrong in my implementation?




--
View this message in context: http://lucene.472066.n3.nabble.com/Indexer-search-with-filter-and-sort-tp4034733p4035047.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Mime
View raw message