Re: [Nutch-dev] Re: Sort does not work properly

2005-04-22 Thread Alan Wang
Yep, that's my problems. Got it and thanks. And I found that my problem is mainly in net.nutch.searcher.DistributedSearch. Lucene give sorted results properly and the search server return results sorted by lastModified. However, the search client resort them by score. The Hit class cannot pass th

Re: [Nutch-dev] Re: Sort does not work properly

2005-04-21 Thread Doug Cutting
Alan Wang wrote: String lastModified = metaData.getProperty("last-modified"); if (lastModified == null) return doc; If the metaData does not contain a "last-modified" entry (from the http headers) then the document ends up with no last-modified field, and hence nothing to sort it on

Re: [Nutch-dev] Re: Sort does not work properly

2005-04-21 Thread zhang jin
That' s good,thanks 2005/4/21, Alan Wang <[EMAIL PROTECTED]>: > > Thanks. > > I am sorry that I thought the message is not sent and I resend it. :(. > And I am sorry that I did not describe it clearly. > > The two item that Doug mentioned is not the source of this problem > because I have alre

Re: [Nutch-dev] Re: Sort does not work properly

2005-04-20 Thread Alan Wang
Thanks. I am sorry that I thought the message is not sent and I resend it. :(. And I am sorry that I did not describe it clearly. The two item that Doug mentioned is not the source of this problem because I have already changed MoreIndexingFilter.java as listed below. So maybe there are something

[Nutch-dev] Re: Sort does not work properly

2005-04-20 Thread Doug Cutting
Alan Wang wrote: 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 sea