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

Dr Oleg Savrasov commented on SOLR-5743:
----------------------------------------

Please checkout the latest patch. Solr Cloud support has been implemented here. 
Please notice that in order to make it working you should make some 
configuration changes.

1. If you have /select SearchHandler definition, you should add blockJoinFacet 
as a last component here, like

  <requestHandler name="/select" class="solr.SearchHandler">
    .....
    <arr name="last-components">
      <str>blockJoinFacet</str>
    </arr>
  </requestHandler>

2. If you don't have /select SearchHandler definition, you should configure 
your custom BlockJoinFacet search handler with shards.qt parameter, which 
should reference on search handler name. For example: 

  <requestHandler name="/blockJoinFacetRH" 
class="org.apache.solr.handler.component.SearchHandler">
    <lst name="defaults">
      <str name="shards.qt">blockJoinFacetRH</str>
    </lst>
    <arr name="last-components">
      <str>blockJoinFacet</str>
    </arr>
  </requestHandler>


> Faceting with BlockJoin support
> -------------------------------
>
>                 Key: SOLR-5743
>                 URL: https://issues.apache.org/jira/browse/SOLR-5743
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: abipc
>              Labels: features
>         Attachments: SOLR-5743.patch, SOLR-5743.patch, SOLR-5743.patch, 
> SOLR-5743.patch, SOLR-5743.patch
>
>
> For a sample inventory(note - nested documents) like this -   
>  <doc>
> <field name="id">10</field>
> <field name="type_s">parent</field>
> <field name="BRAND_s">Nike</field>
> <doc>
> <field name="id">11</field>
> <field name="COLOR_s">Red</field>
> <field name="SIZE_s">XL</field>
> </doc>
> <doc>
> <field name="id">12</field>
> <field name="COLOR_s">Blue</field>
> <field name="SIZE_s">XL</field>
> </doc>
> </doc>
> Faceting results must contain - 
> Red(1)
> XL(1) 
> Blue(1) 
> for a "q=*" query. 
> PS : The inventory example has been taken from this blog - 
> http://blog.griddynamics.com/2013/09/solr-block-join-support.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to