lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: How do I sort lucene search results by relevance and time?
Date Mon, 09 May 2011 10:31:51 GMT
Well, you can use one of the sorting search methods and pass multiple
sort keys including relevance and a timestamp.  But I suspect the
Google algorithm may be a bit more complex than that.

One technique is boosting: set an index time document boost on recent
documents.  Of course what is recent today may not be next week.
There are other, more complex ways of customizing lucene scoring.  A
Google search for something like "customized lucene scoring" will find
lots of info, some recent, some older, but probably all relevant one
way or another.


On Mon, May 9, 2011 at 4:59 AM, Johnbin Wang <> wrote:
> What do I want to do is just like Google search results.  The results in the
> first page is the most relevant and also recent documents, but not
> absolutely sorted by  time desc.
> --
> cheers,
> Johnbin Wang

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message