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 HossMan: http://wiki.apache.org/solr/CurrencyField?action=diff&rev1=11&rev2=12 Solr documents will always yield the currency values they were indexed with, regardless of how they were queried for. For example, a set of documents indexed in USD will yield USD values for its Currency fields regardless if you performed queries in EUR. - So, for the display of Currency fields to a user, it is often necessary to perform a second currency conversion once the documents are returned for display purposes. For accuracy, this conversion should apply the same exchange rates in the currency.xml file available to Solr. + So, for the display of Currency fields to a user, it may be necessary to perform a second currency conversion once the documents are returned for display purposes. For accuracy, this conversion should apply the same exchange rates in the currency.xml file available to Solr. - + + Alternatively, the {{{currency()}}} function mentioned above can be used... + + {{{ + fl=id,score,price:currency(price_c,EUR) + }}} + = TODO = * facet.range is not yet supported for this field type - See [[https://issues.apache.org/jira/browse/SOLR-3218|SOLR-3218]]