Thanks for the response!


1.       So based on my document structure, how can I query on one child 
document but obtain facet counts based on another?  In my example, if my query 
matches only child id=”12”, how can I retrieve facet counts on the other 
children, like fundCode or employeeId for ids 13 and 14?  Have I modeled this 
data correctly in Solr?



<doc>
    <field name="id">1</field>
    <field name="isParent">true</field>
    <doc>
      <field name="id">11</field>
      <field name="isParent">false</field>
      <field name="predictiveModelId">22</field>
      <field name="predictiveModelRank">6</field>
    </doc>
    <doc>
      <field name="id">12</field>
      <field name="isParent">false</field>
      <field name="predictiveModelId">11</field>
<field name="predictiveModelRank">7276</field>
    </doc>
    <doc>
      <field name="id">13</field>
      <field name="isParent">false</field>
      <field name="employeeId">1000000419</field>
    </doc>
    <doc>
      <field name="id">14</field>
      <field name="isParent">false</field>
      <field name="fundCode">245</field>
    </doc>
  </doc>



2.       I will try this out.

From: Mikhail Khludnev [mailto:m...@apache.org]
Sent: Tuesday, August 02, 2016 9:37 AM
To: solr-user; Morse, Matthew K.
Subject: Re: Solr: Block Join Faceting



On Wed, Jul 27, 2016 at 5:27 PM, Morse, Matthew K. 
<matthew.k.mo...@fmr.com.invalid<mailto:matthew.k.mo...@fmr.com.invalid>> wrote:

1.        With this query I receive no facet results.  The main response is 
correct, but I was expecting to see a fundCode facet of 245 with 1.  Below is 
the query with the output.

 the empty fundCode facets is a feature: the query matches only id=13 child, 
despite it rolls up to parent; thus only this child will contribute to child 
facet, but there is no fundCode value there. I think you need to rethink the 
problem vision, at least w it doesn't comply with child.facet.field


2.       If I change the child facet another field, like an int, it blows up.  
Again I was expecting to see two results for predictiveModelId facet: 11 with 1 
and 22 with 1.

Here I recommend either turn filed to string or enable docValues="true" in 
field declaration. It should help.


Any help would be appreciated!



--
Sincerely yours
Mikhail Khludnev

Reply via email to