Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
6.6, 8.0
-
None
-
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"/>