Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF72A9CC6 for ; Tue, 13 Mar 2012 12:00:02 +0000 (UTC) Received: (qmail 37034 invoked by uid 500); 13 Mar 2012 12:00:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 36971 invoked by uid 500); 13 Mar 2012 12:00:01 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 36964 invoked by uid 99); 13 Mar 2012 12:00:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 12:00:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 12:00:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9472F1DD95 for ; Tue, 13 Mar 2012 11:59:40 +0000 (UTC) Date: Tue, 13 Mar 2012 11:59:40 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28Created=29_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: <992615447.7598.1331639980609.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (SOLR-3239) Function for returning a CurrencyField as a virtual field MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Function for returning a CurrencyField as a virtual field --------------------------------------------------------- Key: SOLR-3239 URL: https://issues.apache.org/jira/browse/SOLR-3239 Project: Solr Issue Type: New Feature Reporter: Jan H=C3=B8ydahl Fix For: 4.0 With the new CurrencyField from SOLR-2202, we can now do range queries, sor= t and soon faceting on CurrencyField. One thing we cannot do is return a converted value. We can only return the = stored value which must be in the same currency as it was entered, e.g. "10= .0,USD". People now have to do this conversion in application layer, readin= g the same currency.xml file as in Solr. This is a mess to keep in sync, an= d is hard to support with other ExchangeRateProviders or in other client la= nguages than Java. This patch should implement a Function which takes a field name and request= ed currency as input and returns the converted value. Optionally it could a= lso take care of localized display, e.g. "$10.0" instead of "10.0,USD". Pro= posed syntax: {code} &fl=3Dtitle,price:currency(price_c,EUR) # Returns price_c in EUR as= "price" &fl=3Dtitle,price:currency(price_c,EUR,en_US) # Returns price_c in EUR, f= ormatted according to en_US locale {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org