[ https://issues.apache.org/jira/browse/SOLR-5772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17279049#comment-17279049 ]
David Eric Pugh commented on SOLR-5772: --------------------------------------- On 8.7, with the use of anonymous children, i.e the {{_childDocuments__}}, we have to do a Delete by Query, looks like: {{<delete><query>id:xyz OR parentid:xyx</query></delete>}}. we don't have the various _root_ and other settings, so in a awkward spot. Wanted to document for the next person. > duplicate documents between solr "block join" documents and "normal" document > ----------------------------------------------------------------------------- > > Key: SOLR-5772 > URL: https://issues.apache.org/jira/browse/SOLR-5772 > Project: Solr > Issue Type: Bug > Affects Versions: 4.5.1, 4.6.1 > Reporter: Xiang Xiao > Priority: Major > Labels: blockjoin > > if i first upload this document to solr: > {code:xml} > <?xml version="1.0"?> > <add> > <doc boost="1.0"> > <field name="id">file1</field> > <field name="size_i">100</field> > </doc> > </add> > {code} > and then this one: > {code:xml} > <?xml version="1.0"?> > <add> > <doc boost="1.0"> > <field name="id">dir1</field> > <doc boost="1.0"> > <field name="id">file1</field> > <field name="size_i">400</field> > </doc> > </doc> > </add> > {code} > i will get two file documents with the same id > http://localhost:8983/solr/select?q=*:*&fq=id:file1 > in the config file, i have > {code:xml} > <field name="id" type="string" indexed="true" stored="true" required="true" > multiValued="false" /> > <dynamicField name="*_i" type="int" indexed="true" stored="true"/> > <uniqueKey>id</uniqueKey> > {code} > i would expect the first file document to be overridden by the block join > document. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org