Re: Lucene Ranking/scoring

2007-03-08 Thread Chris Hostetter
: Do I have this right? I got bit confused at first because I assumed that the : actual field values were being used in the computation, but you really need : to know the unique term count in order to get the score 'right'. you can use the actual values in FunctionQueries, except that: 1) dates

Re: Lucene Ranking/scoring

2007-03-08 Thread Peter Keegan
I'm looking at how ReciprocalFloatFuncion and ReverseOrdFieldSource can be used to rank documents by score and date (solr.search.function contains great stuff!). The values in the date field that are used for the ValueSource are not actually used as 'floats', but rather their ordinal term values f

Re: Lucene Ranking/scoring

2006-03-09 Thread Yonik Seeley
On 3/9/06, Yang Sun <[EMAIL PROTECTED]> wrote: > Hi Yonik, > Thanks very much for your suggestion. The query boost works great for > keyword matching. But in my case, I need to rank the results by date and > title. For example, title:foo^2 abstract:foo^1.5 date:2004^3 will only boost > the document

RE: Lucene Ranking/scoring

2006-03-08 Thread Yang Sun
y. Don't know if I can figure out something. Any suggestions? Thanks. Yang -Original Message- From: Yonik Seeley [mailto:[EMAIL PROTECTED] Sent: 2006年3月8日 21:35 To: java-user@lucene.apache.org Subject: Re: Lucene Ranking/scoring Hi Yang, Boosting works at query time as well as

Re: Lucene Ranking/scoring

2006-03-08 Thread Yonik Seeley
Hi Yang, Boosting works at query time as well as index time. If you are using the QueryParser, specify boosts like so: title:foo^2 abstract:foo^1.5 date:mydate^3 If you are building queries pragmatically, then use the Query.setBoost() method. That will boost relative to how a non-boosted query w

Lucene Ranking/scoring

2006-03-08 Thread Yang Sun
Hi, Just wondering how I can rank search result by a combination of fields. I know there is a multi-field sort, but it is just a sorting method. It is sorted by the first field and then the second field ... What I need is a weighted combination. For example, I want to assign a weight of 2 to title