scoring + sorting

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

scoring + sorting

Sébastien Rainville-2
Hi, a basic thing I don't get is how does sorting interacts with the default
scoring? Sorting doesn't seem to do what I want. Both default scoring and
sorting define the scoring of the documents so how can they work together?
Does the sorting overrides things in the default scoring?

Basically, what I'm trying to do is to have the value of a field influencing
the scoring. It's a dynamic field but its type is defined like this:

<fieldType name="sfloat" class="solr.SortableFloatField"
sortMissingLast="true" omitNorms="true"/>

In other words... am I supposed to only sort on that field or should I hack
into solr/lucene in order to change the scoring so it takes into
consideration my field? And if the answer is the later... well I don't
really how to start... so any guidelines would be appreciated.

Thx,
Sebastien
Reply | Threaded
Open this post in threaded view
|

Re: scoring + sorting

Otis Gospodnetic-2
Sebastien, look at the Wiki for info about Function queries.  It sounds like that's what you are after.  Yes, sorting essentially ignores score (yes, you can use both, but not combine them in the way you seem to need to combine them).

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----

> From: Sébastien Rainville <[hidden email]>
> To: solr-user <[hidden email]>
> Sent: Tuesday, September 9, 2008 2:04:30 PM
> Subject: scoring + sorting
>
> Hi, a basic thing I don't get is how does sorting interacts with the default
> scoring? Sorting doesn't seem to do what I want. Both default scoring and
> sorting define the scoring of the documents so how can they work together?
> Does the sorting overrides things in the default scoring?
>
> Basically, what I'm trying to do is to have the value of a field influencing
> the scoring. It's a dynamic field but its type is defined like this:
>
>
> sortMissingLast="true" omitNorms="true"/>
>
> In other words... am I supposed to only sort on that field or should I hack
> into solr/lucene in order to change the scoring so it takes into
> consideration my field? And if the answer is the later... well I don't
> really how to start... so any guidelines would be appreciated.
>
> Thx,
> Sebastien