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 Cool Techi <co...@outlook.com> on 2013/10/25 19:57:25 UTC
Solr Result Tagging
Hi,
My search queries to solr are of the following nature,
(A OR B OR C) OR (X AND Y AND Z) OR ((ABC AND DEF) - XYZ)
What I am trying to achieve is when I fire the query the results returned should be able to tagged with which part or the OR resulted in the result. In case all three parts above are applicable then the result should indicate the same. I tried group.query feature, but doesn't seem like it works on solr cloud.
Thanks,Ayush
Re: Solr Result Tagging
Posted by Isaac Hebsh <is...@gmail.com>.
Hi,
Try using facet.query on each part, you will get the number of total hits
for every OR.
If you need this info per document, the answers might appear when
specifying debug query=true.. If that info is useful, try adding
"[explain]" to fl param (probably requires registering the augmenter plugin
in solrconfig)
- Isaac.
On Friday, October 25, 2013, Cool Techi wrote:
> Hi,
> My search queries to solr are of the following nature,
> (A OR B OR C) OR (X AND Y AND Z) OR ((ABC AND DEF) - XYZ)
> What I am trying to achieve is when I fire the query the results returned
> should be able to tagged with which part or the OR resulted in the result.
> In case all three parts above are applicable then the result should
> indicate the same. I tried group.query feature, but doesn't seem like it
> works on solr cloud.
> Thanks,Ayush
>