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

RealTimeGetComponent and stored/copyField exclusion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • SolrCloud
    • None

    Description

      Consider this scenario: schema has fields `a` and `b` defined, both stored. A copyField is defined from `a` => `b`. A document is indexed with `id=1; b="foo"`. A real-time /get will not return field `b` because RealTimeGetComponent.toSolrDoc currently excludes copyField destinations (despite, in this situation, the source of that copyField not being sent in).

      Granted this is a bit of a diabolical case (discovered while tinkering with cloud MLT tests), but isn't that far fetched to happen in the wild.

      Maybe real-time /get should return all fields set as stored, regardless of copyField status?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ehatcher Erik Hatcher
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: