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