lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: Child document and parent document with same key
Date Thu, 05 Nov 2015 18:07:50 GMT
On Fri, Oct 16, 2015 at 10:41 PM, Jamie Johnson <jej2003@gmail.com> 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 <uniqueKey> backs on Lucene's "deleteTerm" which is supplied into
indexWriter.updateDocument();
- when parent document has children, <uniqueKey> 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

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message