You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by dmitri maziuk <dm...@gmail.com> on 2023/02/17 17:20:49 UTC

Re: 8.11.2 missing record after adding child docs -- BUG?

On 2023-02-16 11:59 PM, Mikhail Khludnev wrote:
> Hello,
> May all of them clash by uniqueKey? If it has place children may wipe
> parent. What do you get on *:*?

uniqueKey does not clash between parent and child documents. Importer 
POSTs all parents first, with "type" : "parent" and "id" : uuid5 derived 
from (parent's) DB id.

Then it POSTs all children with "id" : (child's) DB id and "_root_" : 
uuid5 derived from parent's DB id.

It is actually working on another Solr node whose setup should be 
identical -- at least I don't see any differences -- so I know there is 
nothing wrong with what I am inserting.

So is there a way to find out why exactly it's wiping out the parents? 
Or is it just a heisenbug in the twisted maze of little update 
processors, all alike?

Dima


Re: 8.11.2 missing record after adding child docs -- BUG?

Posted by Mikhail Khludnev <mk...@apache.org>.
Well.. I missed the fact that implementation went so far already.
This particular case
https://solr.apache.org/guide/8_11/updating-parts-of-documents.html#updating-child-documents
should work, I believe.


On Fri, Feb 17, 2023 at 11:27 PM dmitri maziuk <dm...@gmail.com>
wrote:

> On 2023-02-17 2:14 PM, Mikhail Khludnev wrote:
> > Pardon. I'm lost.
> > Are you using
> >
> https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-nested-documents.html
> > ?
> > With that approach it's not possible to put parents and children
> > separately, they go strictly altogether.
>
> So this:
> https://solr.apache.org/guide/8_11/updating-parts-of-documents.html is
> not true? And the fact that it works on one of two servers is a fluke?
>
> Dima
>
>

-- 
Sincerely yours
Mikhail Khludnev
https://t.me/MUST_SEARCH
A caveat: Cyrillic!

Re: 8.11.2 missing record after adding child docs -- BUG?

Posted by dmitri maziuk <dm...@gmail.com>.
On 2023-02-17 2:14 PM, Mikhail Khludnev wrote:
> Pardon. I'm lost.
> Are you using
> https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-nested-documents.html
> ?
> With that approach it's not possible to put parents and children
> separately, they go strictly altogether.

So this: 
https://solr.apache.org/guide/8_11/updating-parts-of-documents.html is 
not true? And the fact that it works on one of two servers is a fluke?

Dima


Re: 8.11.2 missing record after adding child docs -- FIXED

Posted by dmitri maziuk <dm...@gmail.com>.
OK, I am officially an idiot. Apologies for the noise everyone.

(The answer is there was one uncommitted change in the importer script 
hiding on the development host -- something `git pull origin` doesn't 
tell you about. Bad git.)

Cheers,
Dima


Re: 8.11.2 missing record after adding child docs -- BUG?

Posted by Mikhail Khludnev <mk...@apache.org>.
Pardon. I'm lost.
Are you using
https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-nested-documents.html
?
With that approach it's not possible to put parents and children
separately, they go strictly altogether.

On Fri, Feb 17, 2023 at 8:22 PM dmitri maziuk <dm...@gmail.com>
wrote:

> On 2023-02-16 11:59 PM, Mikhail Khludnev wrote:
> > Hello,
> > May all of them clash by uniqueKey? If it has place children may wipe
> > parent. What do you get on *:*?
>
> uniqueKey does not clash between parent and child documents. Importer
> POSTs all parents first, with "type" : "parent" and "id" : uuid5 derived
> from (parent's) DB id.
>
> Then it POSTs all children with "id" : (child's) DB id and "_root_" :
> uuid5 derived from parent's DB id.
>
> It is actually working on another Solr node whose setup should be
> identical -- at least I don't see any differences -- so I know there is
> nothing wrong with what I am inserting.
>
> So is there a way to find out why exactly it's wiping out the parents?
> Or is it just a heisenbug in the twisted maze of little update
> processors, all alike?
>
> Dima
>
>

-- 
Sincerely yours
Mikhail Khludnev
https://t.me/MUST_SEARCH
A caveat: Cyrillic!