lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: How to identify the field with highest score in dismax
Date Thu, 09 Feb 2012 06:38:17 GMT
Hello,

Have you tried to specify debugQuery=on and look into explain section?
Though it's not really performant, but anyway I propose to start from it.

Regards

On Wed, Feb 8, 2012 at 7:32 PM, crisfromnova <crisfromnova@gmail.com> wrote:

> Hi,
>
> According solr documentation the dismax score is calculating after the
> formula :
> (score of matching clause with the highest score) + ( (tie paramenter) *
> (scores of any other matching clauses) ).
>
> Is there a way to identify the field on which the matching clause score is
> the highest?
>
> For example I suppose that I have the following document :
>
> <doc>
>  <str name="Name">Ford Mustang Coupe Cabrio</str>
>  <str name="Details">Ford Mustang is a great car</str>
> </doc>
>
> and the following dismax query :
>
> defType=dismax&qf=Name^10+Details^1&q="Ford+Mustang"+Ford+Mustang
>
> and receive the document with the score : 5.6.
> Is there a way to find out if the score is for the matching on Name field
> or
> for the matching on Details field?
>
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/How-to-identify-the-field-with-highest-score-in-dismax-tp3726297p3726297.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev
Lucid Certified
Apache Lucene/Solr Developer
Grid Dynamics

<http://www.griddynamics.com>
 <mkhludnev@griddynamics.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message