I didn't see any response to this so I'm going to conclude that this is 
unexpected behavior and file a Jira ticket.

________________________________
From: Murray Johnston <mjohns...@tripadvisor.com>
Sent: Tuesday, May 12, 2020 3:39:14 PM
To: solr-user@lucene.apache.org
Subject: Solr currency function and asymmetric rates

Message from External Sender

I have a question / potential bug.  The currency function created in 
https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_SOLR-2D4138&d=DwIFAw&c=9Hv6XPedRSA-5PSECC38X80c1h60_XWA4z1k_R1pROA&r=Lq9lNqDiwvMQkBC0o6YEad-z2TbtIWGO1Suwsz_Idvo&m=Y6eHhsypMRcTwmpwyZXk0FvgjDBkS9ai7WAu4yT2RDA&s=lV8SSGroDcMito64o1K4w0kX-TOWded5CEmtjt1Q69c&e=
  first converts the field to the default currency before then converting to 
the currency requested as part of the function.  When dealing with asymmetric 
rates, that leads to incorrect conversions.  Is this intended?  If not, is it 
required that CurrencyFieldType.getValueSource convert to default currency?


Thanks,


-Murray

Reply via email to