You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2021/04/19 21:28:00 UTC

[jira] [Created] (SOLR-15357) sub-fields of copyField targets should themselves be recorded as targets

David Smiley created SOLR-15357:
-----------------------------------

             Summary: sub-fields of copyField targets should themselves be recorded as targets
                 Key: SOLR-15357
                 URL: https://issues.apache.org/jira/browse/SOLR-15357
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Schema and Analysis
            Reporter: David Smiley


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org