Re: Parent child documents partial update

2017-07-18 Thread Sujay Bawaskar
Yup, got it!

On Tue, Jul 18, 2017 at 12:22 PM, Amrit Sarkar 
wrote:

> Sujay,
>
> Lucene index is in flat-object document style, so I really not think nested
> documents at index / storage will ever be supported unless someone change
> the very intricacy of the index.
>
> Amrit Sarkar
> Search Engineer
> Lucidworks, Inc.
> 415-589-9269
> www.lucidworks.com
> Twitter http://twitter.com/lucidworks
> LinkedIn: https://www.linkedin.com/in/sarkaramrit2
>
> On Tue, Jul 18, 2017 at 8:11 AM, Sujay Bawaskar 
> wrote:
>
> > Thanks Amrit. So storage mechanism of parent child documents is limiting
> > the capability of partial update. It would be great to have flawless
> parent
> > child index support in solr.
> >
> > On 17-Jul-2017 11:14 PM, "Amrit Sarkar"  wrote:
> >
> > > Sujay,
> > >
> > > Not really. Parent-child documents are stored in a single block
> > > contiguously. Read more about parent-child relationship at:
> > > https://medium.com/@sarkaramrit2/multiple-
> documents-with-same-doc-id-in-
> > > index-in-solr-cloud-32c072db2164
> > >
> > > While we perform partial / atomic update, say {"id":"X",
> > > "fieldA":{"set":"Z"}, that particular doc with X will be fetched (all
> the
> > > "stored" fields), update will be performed and indexed, all happens in
> > > *DistributedUpdateProcessor* internally. So there is no way it will
> fetch
> > > the child documents along with it.
> > >
> > > I am not sure whether this can be done with current code or it will be
> > > fixed / improved in the future.
> > >
> > > Amrit Sarkar
> > > Search Engineer
> > > Lucidworks, Inc.
> > > 415-589-9269
> > > www.lucidworks.com
> > > Twitter http://twitter.com/lucidworks
> > > LinkedIn: https://www.linkedin.com/in/sarkaramrit2
> > >
> > > On Mon, Jul 17, 2017 at 12:44 PM, Sujay Bawaskar <
> > sujaybawas...@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > Need a help to understand solr parent child document partial update
> > > > behaviour. Can we perform partial update on parent document without
> > > losing
> > > > its chiild documents? My observation is that parent child
> relationship
> > > > between documents get lost in case partial update is performed on
> > parent.
> > > > Any work around or solution to this issue?
> > > >
> > > > --
> > > > Thanks,
> > > > Sujay P Bawaskar
> > > > M:+91-77091 53669
> > > >
> > >
> >
>


Re: Parent child documents partial update

2017-07-18 Thread Amrit Sarkar
Sujay,

Lucene index is in flat-object document style, so I really not think nested
documents at index / storage will ever be supported unless someone change
the very intricacy of the index.

Amrit Sarkar
Search Engineer
Lucidworks, Inc.
415-589-9269
www.lucidworks.com
Twitter http://twitter.com/lucidworks
LinkedIn: https://www.linkedin.com/in/sarkaramrit2

On Tue, Jul 18, 2017 at 8:11 AM, Sujay Bawaskar 
wrote:

> Thanks Amrit. So storage mechanism of parent child documents is limiting
> the capability of partial update. It would be great to have flawless parent
> child index support in solr.
>
> On 17-Jul-2017 11:14 PM, "Amrit Sarkar"  wrote:
>
> > Sujay,
> >
> > Not really. Parent-child documents are stored in a single block
> > contiguously. Read more about parent-child relationship at:
> > https://medium.com/@sarkaramrit2/multiple-documents-with-same-doc-id-in-
> > index-in-solr-cloud-32c072db2164
> >
> > While we perform partial / atomic update, say {"id":"X",
> > "fieldA":{"set":"Z"}, that particular doc with X will be fetched (all the
> > "stored" fields), update will be performed and indexed, all happens in
> > *DistributedUpdateProcessor* internally. So there is no way it will fetch
> > the child documents along with it.
> >
> > I am not sure whether this can be done with current code or it will be
> > fixed / improved in the future.
> >
> > Amrit Sarkar
> > Search Engineer
> > Lucidworks, Inc.
> > 415-589-9269
> > www.lucidworks.com
> > Twitter http://twitter.com/lucidworks
> > LinkedIn: https://www.linkedin.com/in/sarkaramrit2
> >
> > On Mon, Jul 17, 2017 at 12:44 PM, Sujay Bawaskar <
> sujaybawas...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > Need a help to understand solr parent child document partial update
> > > behaviour. Can we perform partial update on parent document without
> > losing
> > > its chiild documents? My observation is that parent child relationship
> > > between documents get lost in case partial update is performed on
> parent.
> > > Any work around or solution to this issue?
> > >
> > > --
> > > Thanks,
> > > Sujay P Bawaskar
> > > M:+91-77091 53669
> > >
> >
>


Re: Parent child documents partial update

2017-07-17 Thread Sujay Bawaskar
Thanks Amrit. So storage mechanism of parent child documents is limiting
the capability of partial update. It would be great to have flawless parent
child index support in solr.

On 17-Jul-2017 11:14 PM, "Amrit Sarkar"  wrote:

> Sujay,
>
> Not really. Parent-child documents are stored in a single block
> contiguously. Read more about parent-child relationship at:
> https://medium.com/@sarkaramrit2/multiple-documents-with-same-doc-id-in-
> index-in-solr-cloud-32c072db2164
>
> While we perform partial / atomic update, say {"id":"X",
> "fieldA":{"set":"Z"}, that particular doc with X will be fetched (all the
> "stored" fields), update will be performed and indexed, all happens in
> *DistributedUpdateProcessor* internally. So there is no way it will fetch
> the child documents along with it.
>
> I am not sure whether this can be done with current code or it will be
> fixed / improved in the future.
>
> Amrit Sarkar
> Search Engineer
> Lucidworks, Inc.
> 415-589-9269
> www.lucidworks.com
> Twitter http://twitter.com/lucidworks
> LinkedIn: https://www.linkedin.com/in/sarkaramrit2
>
> On Mon, Jul 17, 2017 at 12:44 PM, Sujay Bawaskar 
> wrote:
>
> > Hi,
> >
> > Need a help to understand solr parent child document partial update
> > behaviour. Can we perform partial update on parent document without
> losing
> > its chiild documents? My observation is that parent child relationship
> > between documents get lost in case partial update is performed on parent.
> > Any work around or solution to this issue?
> >
> > --
> > Thanks,
> > Sujay P Bawaskar
> > M:+91-77091 53669
> >
>


Re: Parent child documents partial update

2017-07-17 Thread Amrit Sarkar
Sujay,

Not really. Parent-child documents are stored in a single block
contiguously. Read more about parent-child relationship at:
https://medium.com/@sarkaramrit2/multiple-documents-with-same-doc-id-in-index-in-solr-cloud-32c072db2164

While we perform partial / atomic update, say {"id":"X",
"fieldA":{"set":"Z"}, that particular doc with X will be fetched (all the
"stored" fields), update will be performed and indexed, all happens in
*DistributedUpdateProcessor* internally. So there is no way it will fetch
the child documents along with it.

I am not sure whether this can be done with current code or it will be
fixed / improved in the future.

Amrit Sarkar
Search Engineer
Lucidworks, Inc.
415-589-9269
www.lucidworks.com
Twitter http://twitter.com/lucidworks
LinkedIn: https://www.linkedin.com/in/sarkaramrit2

On Mon, Jul 17, 2017 at 12:44 PM, Sujay Bawaskar 
wrote:

> Hi,
>
> Need a help to understand solr parent child document partial update
> behaviour. Can we perform partial update on parent document without losing
> its chiild documents? My observation is that parent child relationship
> between documents get lost in case partial update is performed on parent.
> Any work around or solution to this issue?
>
> --
> Thanks,
> Sujay P Bawaskar
> M:+91-77091 53669
>