lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Sorting results by both score and date
Date Fri, 16 Sep 2005 14:31:26 GMT

On Sep 16, 2005, at 10:14 AM, <Tim.Wright@informa.com>  
<Tim.Wright@informa.com> wrote:
> Ah - the one bit of LIA I haven't read yet is the case studies  
> section!
> Many thanks, I'll check it out. Sorting by multiple fields isn't quite
> what I want - that sorts entirely by field A, then uses field B for
> records where A is identical, correct?

Correct.

> What I really want to do is sort by "A * (1-(B/700))", where A is the
> score, and B is the age (in days) of the document. IE - the score is
> basically "scaled down" with date.

Maybe the TSS case study will help, though they rebuild their index  
nightly and can adjust the boost based on the current day.

I've not come across a really clean way to do this sort of age-based  
boosting other than how TSS does it.

     Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message