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

copyField with bare wildcard source duplicates content in dest field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 7.6
    • None
    • Schema and Analysis
    • None

    Description

      A copyField directive in the schema with source="*" will duplicate all content that was already in dest. This doesn't seem like a show stopping problem, but it was a surprise to me, and I can't think of a reason you'd want that to happen. Worst case scenario is that it makes your index 2x larger for no reason.

      The first patch adds a test into CopyFieldTest that shows the behavior. 

      Attachments

        1. SOLR-13160-2.patch
          1 kB
          Dan Meehl
        2. SOLR-13160.patch
          2 kB
          Dan Meehl

        Activity

          People

            Unassigned Unassigned
            dmeehl Dan Meehl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: