So that's a good question - how do you identify parent documents that *do not* have child documents.
I'm not sure how you would do that. However, you could index the number of children into the parent as an integer, then it would be easy. You could probably do that inside an UpdateProcessor, even using the Javascript ScriptUpdateProcessor. Probably simpler though in the code that pushes the docs to Solr. Upayavira On Wed, Dec 16, 2015, at 09:05 PM, Novin Novin wrote: > Hi Scott, > > Actually, it is not multi value field. it is nested document. > > Novin > > On 16 December 2015 at 20:33, Scott Stults < > sstu...@opensourceconnections.com> wrote: > > > Hi Novin, > > > > How are you associating parents with children? Is it a "children" > > multivalued field in the parent record? If so you could query for records > > that don't have a value in that field like "-children:[* TO *]" > > > > k/r, > > Scott > > > > On Wed, Dec 16, 2015 at 7:29 AM, Novin Novin <toe.al...@gmail.com> wrote: > > > > > Hi guys, > > > > > > I have few parent index without child, what would wold be the query for > > > those to get? > > > > > > Thanks, > > > Novin > > > > > > > > > > > -- > > Scott Stults | Founder & Solutions Architect | OpenSource Connections, LLC > > | 434.409.2780 > > http://www.opensourceconnections.com > >