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

sub-fields of copyField targets should themselves be recorded as targets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Schema and Analysis
    • None

    Description

      CurrencyFieldType, BBoxField and maybe other field types have "sub-fields"; they appear to the user as one field but internally are composed of more than one.  The schema keeps track of which fields are copyField targets in copyFieldTargetCounts but these aggregate fields don't have their sub-fields recorded as well.  As a consequence of this, the RealtimeGetComponent doesn't filter these out when materializing a document from the index.  That could lead to other problems.

      I discovered this while debugging some issue in org.apache.solr.client.solrj.SolrExampleTests#testUpdateField which performs partial updates to the "price" field which is a copyField source to "*_c" which is of type CurrencyFieldType.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: