Re: Child document and parent document with same key

2015-11-06 Thread Jamie Johnson
Thanks that's what I suspected given what I'm seeing but wanted to make
sure.  Again thanks
On Nov 5, 2015 1:08 PM, "Mikhail Khludnev" 
wrote:

> On Fri, Oct 16, 2015 at 10:41 PM, Jamie Johnson  wrote:
>
> > Is this expected to work?
>
>
> I think it is. I'm still not sure I understand the question. But let me
> bring some details from SOLR-3076:
> - Solr's  backs on Lucene's "deleteTerm" which is supplied into
> indexWriter.updateDocument();
> - when parent document has children,  is not a deleteTerm but
> its' value is used for "deleteTerm" for field "_root_" see
>
> https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java#L251
> - thus for block updates uniqueKey is (almost) meaningless.
> It lacks of elegance, but that's it.
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> 
> 
>


Re: Child document and parent document with same key

2015-11-05 Thread Mikhail Khludnev
On Fri, Oct 16, 2015 at 10:41 PM, Jamie Johnson  wrote:

> Is this expected to work?


I think it is. I'm still not sure I understand the question. But let me
bring some details from SOLR-3076:
- Solr's  backs on Lucene's "deleteTerm" which is supplied into
indexWriter.updateDocument();
- when parent document has children,  is not a deleteTerm but
its' value is used for "deleteTerm" for field "_root_" see
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java#L251
- thus for block updates uniqueKey is (almost) meaningless.
It lacks of elegance, but that's it.

-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics





Re: Child document and parent document with same key

2015-11-05 Thread Jamie Johnson
The field is "key" and this is the value of unique key in schema.xml
On Oct 17, 2015 3:23 AM, "Mikhail Khludnev" 
wrote:

> Hello,
>
> What are the field names for parent and child docs exactly?
> Whats'  in schema.xml?
> What you've got if you actually try to do this?
>
> On Fri, Oct 16, 2015 at 12:41 PM, Jamie Johnson  wrote:
>
> > I am looking at using child documents and noticed that if I specify a
> child
> > and parent with the same key solr indexes this fine and I can retrieve
> both
> > documents separately.  Is this expected to work?
> >
> > -Jamie
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> 
> 
>


Re: Child document and parent document with same key

2015-10-17 Thread Mikhail Khludnev
Hello,

What are the field names for parent and child docs exactly?
Whats'  in schema.xml?
What you've got if you actually try to do this?

On Fri, Oct 16, 2015 at 12:41 PM, Jamie Johnson  wrote:

> I am looking at using child documents and noticed that if I specify a child
> and parent with the same key solr indexes this fine and I can retrieve both
> documents separately.  Is this expected to work?
>
> -Jamie
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics





Child document and parent document with same key

2015-10-16 Thread Jamie Johnson
I am looking at using child documents and noticed that if I specify a child
and parent with the same key solr indexes this fine and I can retrieve both
documents separately.  Is this expected to work?

-Jamie