You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Alan Wang <sf...@gmail.com> on 2005/04/21 06:05:40 UTC
[nutch-dev] Sort does not work properly
Hi,
I am trying to sort the search result with "lastModified" field. So I index
"lastModified " as Integer and Keyword into index and search with
search(Qurey query, Filter filter, int n, Sort sort) method. Just modified
in net.nutch.searcher.LuceneQueryOptimizer.optimize.
return searcher.search(query, filter, numHits,
new Sort(
new SortField[]{
new SortField("lastModified", SortField.INT, true)
}
));
The result sure changed, and largely sorted by time. But it didn't exactly
sorted by lastModified. The results looks ugly, :(.
Someboy can help?
--
Regards,
Alan Wang