Re: Sorting results by both score and date

2005-10-04 Thread Yonik Seeley
Another way to tackle this could be FunctionQuery. It can create a score based on the value of a field. http://issues.apache.org/jira/browse/LUCENE-446 -Yonik Now hiring -- http://tinyurl.com/7m67g On 9/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > What I really want to do is sort by "A

RE: Sorting results by both score and date

2005-09-16 Thread Tim.Wright
>> 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

Re: Sorting results by both score and date

2005-09-16 Thread Erik Hatcher
On Sep 16, 2005, at 10:14 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 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 reco

RE: Sorting results by both score and date

2005-09-16 Thread Tim.Wright
ene.apache.org Subject: Re: Sorting results by both score and date Tim, check out p. 155 in LIA where we discuss "Sorting by multiple fields". However, what you're really after it seems is boosting documents. Check out TheServerSide's case study (online or in LIA) - Dion

Re: Sorting results by both score and date

2005-09-16 Thread Erik Hatcher
Tim, check out p. 155 in LIA where we discuss "Sorting by multiple fields". However, what you're really after it seems is boosting documents. Check out TheServerSide's case study (online or in LIA) - Dion discusses how he implemented boosting for more recent documents. If you're indexin

RE: Sorting results by both score and date

2005-09-16 Thread Mordo, Aviran (EXP N-NANNATEK)
an http://www.aviransplace.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 16, 2005 9:43 AM To: java-user@lucene.apache.org Subject: Sorting results by both score and date Hi, I'm working in an industry which is fairly time sensitive, and

Sorting results by both score and date

2005-09-16 Thread Tim.Wright
Hi, I'm working in an industry which is fairly time sensitive, and older documents are inherently less valuable. I'd like to be able to "weight" the score of search results, so that older documents score lower. I don't just want to sort by date, though - I'd still like results to be ordered by sco