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

ash fo commented on SOLR-5743:
------------------------------

Thanks, I applied the patch but still passing "child.facet.field=xxxxxxx" 
doesn't do anything. Here is my query:

http://localhost:8080/solr/nested_collecion2/select?q=*%3A*&fq=content_type%3AparentDocument&fl=id&wt=json&indent=true&facet=true&child.facet.field=retid

And this is what I get back, basically Solr doesn't know the 
'child.facet.field' parameter:

{
  "responseHeader":{
    "status":0,
    "QTime":1,
    "params":{
      "facet":"true",
      "fl":"id",
      "indent":"true",
      "q":"*:*",
      "child.facet.field":"retid",
      "wt":"json",
      "fq":"content_type:parentDocument"}},
  "response":{"numFound":998,"start":0,"docs":[
      {
        "id":"1554855923"},
      {
        "id":"1556730933"},
      {
        "id":"1437257890"},
      {
        "id":"1463296684"},
      {
        "id":"1143793641"},
      {
        "id":"1168208507"},
      {
        "id":"1201399772"},
      {
        "id":"1162769709"},
      {
        "id":"1199906811"},
      {
        "id":"1296203203"}]
  },
  "facet_counts":{
    "facet_queries":{},
    "facet_fields":{},
    "facet_dates":{},
    "facet_ranges":{},
    "facet_intervals":{}}}

the retid field has the docValues="true" too.

<field name="retid" type="int" indexed="true" stored="true" docValues="true"/>

Is there anything else needs to be done? 

Thanks


> 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
>
>
> 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