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

copyField with bare wildcard source duplicates content in dest field

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            dmeehl Dan Meehl

            Dates

              Created:
              Updated:

              Slack

                Issue deployment