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 lexus <ay...@scalepoint.com> on 2013/04/10 18:33:49 UTC
Score field statistics
In our application we are using Solr 4.1.
And we wanna filter results by score relevance.
I had the idea to use statistic data (i.e. standard deviation, mean) for
score field.
Is it exists workaround of using "…stats=true&stats.field=score..." ?
Thanks in advance
--
View this message in context: http://lucene.472066.n3.nabble.com/Score-field-statistics-tp4055089.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Score field statistics
Posted by lexus <ay...@scalepoint.com>.
Solution found here:
http://hokiesuns.blogspot.com/2012/11/using-solrs-postfiltering-to-collect.html
--
View this message in context: http://lucene.472066.n3.nabble.com/Score-field-statistics-tp4055089p4055915.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Score field statistics
Posted by Gora Mohanty <go...@mimirtech.com>.
On 11 April 2013 13:41, lexus <ay...@scalepoint.com> wrote:
> Thanks for response,
>
> But problem is that "SolrException: undefined field: score" appears after
> trying to get stats for score pseudo field.
[...]
Sorry, didn't catch the part where you also wanted statistics from the
StatsComponent. I do not think that it is possible to do this for
pseudo fields like score. You would have to collect the scores, and
calculate statistics yourselves.
Regards,
Gora
Re: Score field statistics
Posted by lexus <ay...@scalepoint.com>.
Thanks for response,
But problem is that "SolrException: undefined field: score" appears after
trying to get stats for score pseudo field.
Sincerely,
Alex
Gora Mohanty-3 wrote
> Even simpler: You can just add &fl=*,score to get the score returned
> in the search results along with all other fields. Please see
> http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_see_the_relevancy_scores_for_search_results
>
> Regards,
> Gora
--
View this message in context: http://lucene.472066.n3.nabble.com/Score-field-statistics-tp4055089p4055254.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Score field statistics
Posted by Gora Mohanty <go...@mimirtech.com>.
On 10 April 2013 22:03, lexus <ay...@scalepoint.com> wrote:
>
> In our application we are using Solr 4.1.
> And we wanna filter results by score relevance.
> I had the idea to use statistic data (i.e. standard deviation, mean) for
> score field.
> Is it exists workaround of using "…stats=true&stats.field=score..." ?
Even simpler: You can just add &fl=*,score to get the score returned
in the search results along with all other fields. Please see
http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_see_the_relevancy_scores_for_search_results
Regards,
Gora