You could try simply doing a not query to find all those docs that do not
contain the child fields like -fq=:*
Since the index is flat, the "children" are like any other fields to lucene
and so this should work
On Thu, 17 Dec 2015, 04:33 Novin wrote:
> "Index the number of children into the pare
"Index the number of children into the parent as an integer" is nice and easy
solution. But I would like to know about"
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." either
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
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
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 wrote:
> Hi guys,
>
> I
Hi guys,
I have few parent index without child, what would wold be the query for
those to get?
Thanks,
Novin