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 

Reply via email to