You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by gekkokid <me...@gekkokid.org.uk> on 2005/11/16 06:14:46 UTC

how newer documents have a better score

Hi, can anyone give me some pointers on making newer documents have a better ranking/score? i.e. documents i indexed today have a higher ranking/score in the index than documents that were index yesterday etc


Thanks

_gk

Re: how newer documents have a better score

Posted by gekkokid <me...@gekkokid.org.uk>.
thanks :)
_gk

----- Original Message ----- 
From: "Chris Hostetter" <ho...@fucit.org>
To: <ja...@lucene.apache.org>
Sent: Wednesday, November 16, 2005 6:10 AM
Subject: Re: how newer documents have a better score


>
> : Hi, can anyone give me some pointers on making newer documents have a
> : better ranking/score? i.e. documents i indexed today have a higher
> : ranking/score in the index than documents that were index yesterday etc
>
> This topic has come up more then once in the past, a good starting point
> at an approximation can be found here...
>
> http://mail-archives.apache.org/mod_mbox/lucene-java-user/200501.mbox/%3cPine.LNX.4.58.0501101749580.4623@hal.rescomp.berkeley.edu%3e
>
> ...but there is new a new "FunctionQuery" class in Jira that will allow
> for much better way to do this.  In a nut shell: you create a
> FunctionQuery object on your (indexed) date field, and add it as an
> optional clause to a Boolean query that contains at least one required
> clause, and the function provides a score for every doc based on the value
> of it's date field.
>
> the code in Jira right now should work as is -- but I believe Yonik has
> allready completely rewriten the API to make more sense, so if you wait a
> few days it might be easier to use...
>
> http://issues.apache.org/jira/browse/LUCENE-446
>
>
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
> 


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


Re: how newer documents have a better score

Posted by Chris Hostetter <ho...@fucit.org>.
: Hi, can anyone give me some pointers on making newer documents have a
: better ranking/score? i.e. documents i indexed today have a higher
: ranking/score in the index than documents that were index yesterday etc

This topic has come up more then once in the past, a good starting point
at an approximation can be found here...

http://mail-archives.apache.org/mod_mbox/lucene-java-user/200501.mbox/%3cPine.LNX.4.58.0501101749580.4623@hal.rescomp.berkeley.edu%3e

...but there is new a new "FunctionQuery" class in Jira that will allow
for much better way to do this.  In a nut shell: you create a
FunctionQuery object on your (indexed) date field, and add it as an
optional clause to a Boolean query that contains at least one required
clause, and the function provides a score for every doc based on the value
of it's date field.

the code in Jira right now should work as is -- but I believe Yonik has
allready completely rewriten the API to make more sense, so if you wait a
few days it might be easier to use...

	http://issues.apache.org/jira/browse/LUCENE-446



-Hoss


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