RE: Sorting results by both score and date

2005-09-16 Thread Mordo, Aviran (EXP N-NANNATEK)
You can write a query and add a date range to it giving the date field a boost. For instance you can do "+content:foo date:[{Today's date} TO null]^5 date:[{Yesterday's Date} TO {Today's Date}]^4 date:[{Last Week's Date} TO Yesterday's Date}]^3 and so on Aviran http://www.aviransplace.com -O

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 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
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
>> 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-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