lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "CurrencyField" by JanHoydahl
Date Mon, 12 Mar 2012 10:01:20 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "CurrencyField" page has been changed by JanHoydahl:
http://wiki.apache.org/solr/CurrencyField?action=diff&rev1=4&rev2=5

Comment:
Document precisionStep

  === Configuration ===
  See example schema for example of how to use the field type. The field type and field is
defined in schema.xml as follows:
  {{{
-   <fieldType name="currency" class="solr.CurrencyField" currencyConfig="currency.xml"
defaultCurrency="EUR" />
+   <fieldType name="currency" class="solr.CurrencyField" precisionStep="8" currencyConfig="currency.xml"
defaultCurrency="EUR" />
  
    <dynamicField name="*_c" type="currency" />
  }}}
  
  !DefaultCurrency will be used if you do not specify a currency. The default defaultCurrency
is {{{USD}}}, if not specified. Note that defaultCurrency cannot be changed unless followed
by a full re-index.
+ !PrecisionStep is passed on to the !TrieLong sub-field. Value "8" gives faster range queries
for currencies. If you don't need that, you can save some index space using "0".
  
  === Indexing ===
  When you index e.g. a price, you specify value and currency separated by comma. We use the
dynamicField {{{*_c}}} in our examples:

Mime
View raw message