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

CurrencyFields can not be multiValued

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 6.6, 8.0
    • Fix Version/s: 6.6, 8.0
    • Component/s: Schema and Analysis
    • Labels:
      None
    • Environment:

      CENTOS 6.9

      Description

      <fieldType name="currency" class="solr.CurrencyField" currencyConfig="currency.xml" defaultCurrency="USD" precisionStep="8"/>
      

      When I use multiValued currency field as follows :

      <field name="price" type="currency" multiValued="true"/>
      

      it gives an error like that : "collection: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core collection: Can't load schema /opt/solr/server/solr/collection/conf/managed-schema: CurrencyFields can not be multiValued: price"

      You have to use tdouble with multiValued for prices alternatively.

      <fieldType name="tdouble" class="solr.TrieDoubleField" positionIncrementGap="0" docValues="true" precisionStep="8"/>
      <field name="price" type="tdouble" multiValued="true"/>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              0zgurYalcin ÖZGÜR YALÇIN
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: