[ 
https://issues.apache.org/jira/browse/SOLR-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488784
 ] 

Rida Benjelloun commented on SOLR-209:
--------------------------------------

Hi Yonik,
Actually in our library catalogue, a subject field is composed by 6 fields. 
With my approach it is possible to build a facet "subject" made up of 6 fields 
and to sort it in one block.
However if I use a facet by fields, I would thus have 6 facet, and each one is 
sorted separately.
Example : fields 650 and 651 represents subjects

facet.field=650 651
<lst name="650 651">
          <!--field 650-->
          <int name="Rats Physiologie">140</int>
          <int name="Souris Physiologie">84</int>
          <int name="Français (Langue) Composition et exercices">78</int>       
          <!--Field 651-->
          <int name="Sainte-Foy (Québec, Québec)">49</int>
           <!--field 650-->
          <int name="Création (Arts)">46</int>         
          .......
</lst>


facet.field=650&facet.field=651
<lst name="650">                
       <int name="Rats Physiologie">140</int>
       <int name="Souris Physiologie">84</int>
       <int name="Français (Langue) Composition et exercices">78</int>       
       <int name="Création (Arts)">46</int>      
          .......
</lst>
<lst name="651">          
      <int name="Sainte-Foy (Québec, Québec)">49</int>
      <int name="Québec (Québec) Antiquités">20</int>
          .......
</lst>
Am I right? 

Regards 

> Multifields and multivalued facets
> ----------------------------------
>
>                 Key: SOLR-209
>                 URL: https://issues.apache.org/jira/browse/SOLR-209
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.1.0
>         Environment: Java
>            Reporter: Rida Benjelloun
>             Fix For: 1.1.0
>
>         Attachments: MultiFieldsHitsFacets.java, MultiFieldsHitsFacets.patch
>
>
> MultiFieldsHitsFacets, increase the performance of faceting in multiValued 
> fields, buy creating facets from Lucene Hits. It also allows the creation of 
> facet using multiple fields. The fields must be separated by single space   
> Example : facet.field=subject subjectG subjectA .
> Rida Benjelloun
> [EMAIL PROTECTED]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to