Hi,

I'm trying to get results in a single Solr call through multiple
group.query definitions.  I'm getting the results I want but, each group is
presented under a "name" consisting of the query used for that group.

I'd like to change the "name" of each group to some meaningful name
instead.  I'm looking for something similar to the "key" feature in Facets
(
https://wiki.apache.org/solr/SimpleFacetParameters#key_:_Changing_the_output_key
)

For example, the current output I get is:
...
<lst name="grouped">
    <lst name="{!edismax qf=Keyword mm=100% v=$queryTerms}">
 <!-- Change this ... -->
        <int name="matches">5849</int>
        <result name="doclist" numFound="0" start="0"/>
    </lst>
    <lst name="{!edismax qf=synonyms mm='2<-1 5<100%' v=$queryTerms}"> <!--
... and also change this -->
    <int name="matches">5849</int>
        <result name="doclist" numFound="7" start="0">
            <doc>
...

Where I'd like to see something like:
...
<lst name="grouped">
    <lst name="Keyword">                                               <!--
More meaningful for client apps  ... -->
        <int name="matches">5849</int>
        <result name="doclist" numFound="0" start="0"/>
    </lst>
    <lst name="Synonyms">                                            <!--
... and not exposing business logic -->
    <int name="matches">5849</int>
        <result name="doclist" numFound="7" start="0">
            <doc>
...

Does anyone know about a way to do this?

Thanks,
Carlos

Reply via email to