You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Murray Johnston <mj...@tripadvisor.com> on 2020/05/12 22:39:14 UTC

Solr currency function and asymmetric rates

I have a question / potential bug.  The currency function created in https://issues.apache.org/jira/browse/SOLR-4138 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

Re: Solr currency function and asymmetric rates

Posted by ART GALLERY <al...@goretoy.com>.
check out the videos on this website TROO.TUBE don't be such a
sheep/zombie/loser/NPC. Much love!
https://troo.tube/videos/watch/aaa64864-52ee-4201-922f-41300032f219

On Tue, May 12, 2020 at 5:39 PM Murray Johnston
<mj...@tripadvisor.com> wrote:
>
> I have a question / potential bug.  The currency function created in https://issues.apache.org/jira/browse/SOLR-4138 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

Re: Solr currency function and asymmetric rates

Posted by Murray Johnston <mj...@tripadvisor.com>.
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 <mj...@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