Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5772

duplicate documents between solr "block join" documents and "normal" document

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.5.1, 4.6.1
    • None
    • None

    Description

      if i first upload this document to solr:

          <?xml version="1.0"?>
      <add>
        <doc boost="1.0">
          <field name="id">file1</field>
          <field name="size_i">100</field>
        </doc>
      </add>
      

      and then this one:

      <?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>
      

      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

      <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>
      

      i would expect the first file document to be overridden by the block join document.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xaon Xiang Xiao
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: