You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sérgio Alves <sd...@hotmail.com> on 2013/06/19 17:45:06 UTC
Question about SOLR search relevance score
Hi.
My name is Sérgio Alves and I'm a developer in a project that uses solr as its search engine.
Right now we're having problems with some common search terms. They
return varied results on the search results, and the products which
should appear first in the results, are scored lower than other,
seemingly unrelated, products.
I wanted to know if there is a parameter or any possible way for me to
know the way that solr calculates the scores it returns. For example, if
we had a search relevancy formula like
QF=attributes_name^15+attributes_brand^10+attributes_category^8, how can
I know that brand scored 'x', for
name 'y' and category 'z'. Is that possible? How can I do that?
This is urgent, if someone could take the time and answer this
topic to me in a quick manner, I would really appreciate it.
Thank you very much for the attention, best regards,
Sérgio Alves
RE: Question about SOLR search relevance score
Posted by Swati Swoboda <ss...@igloosoftware.com>.
Hi Sergio,
Append '&debugQuery=on' to your queries to learn more about how your queries are being evaluated/ranked.
i.e. qf=attributes_name^15+attributes_brand^10+attributes_category^8&&debugQuery=on
You'll get an XML section that is dedicated to debug information.
I've found http://explain.solr.pl/ useful in understanding and visualizing the debug output.
Swati
-----Original Message-----
From: sérgio Alves [mailto:sd_t_alves@hotmail.com]
Sent: Wednesday, June 19, 2013 11:45 AM
To: solr-user@lucene.apache.org
Subject: Question about SOLR search relevance score
Hi.
My name is Sérgio Alves and I'm a developer in a project that uses solr as its search engine.
Right now we're having problems with some common search terms. They
return varied results on the search results, and the products which
should appear first in the results, are scored lower than other,
seemingly unrelated, products.
I wanted to know if there is a parameter or any possible way for me to
know the way that solr calculates the scores it returns. For example, if
we had a search relevancy formula like
QF=attributes_name^15+attributes_brand^10+attributes_category^8, how can
I know that brand scored 'x', for
name 'y' and category 'z'. Is that possible? How can I do that?
This is urgent, if someone could take the time and answer this
topic to me in a quick manner, I would really appreciate it.
Thank you very much for the attention, best regards,
Sérgio Alves
Re: Question about SOLR search relevance score
Posted by Gora Mohanty <go...@mimirtech.com>.
On 19 June 2013 21:15, sérgio Alves <sd...@hotmail.com> wrote:
[...]
> Right now we're having problems with some common search terms. They
> return varied results on the search results, and the products which
> should appear first in the results, are scored lower than other,
> seemingly unrelated, products.
[...]
> I wanted to know if there is a parameter or any possible way for me to
> know the way that solr calculates the scores it returns. For example, if
> we had a search relevancy formula like
> QF=attributes_name^15+attributes_brand^10+attributes_category^8, how can
> I know that brand scored 'x', for
> name 'y' and category 'z'. Is that possible? How can I do that?
[...]
To get an explanation of the scoring, add debugQuery=on
as a parameter to your Solr search URL. Please see
http://wiki.apache.org/solr/CommonQueryParameters#debugQuery
There are also various 'explain' parameters that might be
useful.
I take it that you have already seen
http://wiki.apache.org/solr/SolrRelevancyFAQ
Regards,
Gora