On Sun, Nov 2, 2008 at 5:09 AM, George <[EMAIL PROTECTED]> wrote:
> I want to implement a custom sort in Solr based on a combination of
> relevance (Solr gives me it yet => score) and a custom value I've calculated
> previously for each document. I see two options:
>
> 1. Use a function query (I'm using a DisMaxRequestHandler).
> 2. Create a component that set SortSpec with a sort that has a custom
> ComparatorSource (similar to QueryElevationComponent).
>
> The first option has the problem: While the relevance value changes for
> every query, my custom value is constant for each doc.

Yes, that can be an issue when adding unrelated scores.
Multiplying them might give you better results:
http://lucene.apache.org/solr/api/org/apache/solr/search/BoostQParserPlugin.html

-Yonik

Reply via email to