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 A160091AB for ; Thu, 26 Jan 2012 00:23:05 +0000 (UTC) Received: (qmail 73254 invoked by uid 500); 26 Jan 2012 00:23:04 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 73136 invoked by uid 500); 26 Jan 2012 00:23:03 -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 73119 invoked by uid 99); 26 Jan 2012 00:23:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 00:23:03 +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; Thu, 26 Jan 2012 00:23:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1E6D616327B for ; Thu, 26 Jan 2012 00:22:40 +0000 (UTC) Date: Thu, 26 Jan 2012 00:22:40 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28Commented=29_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: <1315183492.78906.1327537360126.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <23832797.90051288133479065.JavaMail.jira@thor> Subject: [jira] [Commented] (SOLR-2202) Money FieldType 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 [ https://issues.apache.org/jira/browse/SOLR-2202?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13193= 467#comment-13193467 ]=20 Jan H=C3=B8ydahl commented on SOLR-2202: ----------------------------------- My biggest wish is human-friendly decimal support e.g. "1.5,USD". Are you s= ure you need to change the index format for this, perhaps enough to add som= e parse/display code? Reloading config would be nice, but as there is a known workaround by reloa= ding core it's not a blocker. =20 > Money FieldType > --------------- > > Key: SOLR-2202 > URL: https://issues.apache.org/jira/browse/SOLR-2202 > Project: Solr > Issue Type: New Feature > Components: Schema and Analysis > Affects Versions: 1.5 > Reporter: Greg Fodor > Assignee: Jan H=C3=B8ydahl > Fix For: 3.6, 4.0 > > Attachments: SOLR-2022-solr-3.patch, SOLR-2202-lucene-1.patch, SO= LR-2202-solr-1.patch, SOLR-2202-solr-2.patch, SOLR-2202-solr-4.patch, SOLR-= 2202-solr-5.patch, SOLR-2202-solr-6.patch, SOLR-2202-solr-7.patch, SOLR-220= 2-solr-8.patch, SOLR-2202-solr-9.patch, SOLR-2202.patch, SOLR-2202.patch > > > Attached please find patches to add support for monetary values to Solr/L= ucene with query-time currency conversion. The following features are suppo= rted: > - Point queries (ex: "price:4.00USD") > - Range quries (ex: "price:[$5.00 TO $10.00]") > - Sorting. > - Currency parsing by either currency code or symbol. > - Symmetric & Asymmetric exchange rates. (Asymmetric exchange rates are u= seful if there are fees associated with exchanging the currency.) > At indexing time, money fields can be indexed in a native currency. For e= xample, if a product on an e-commerce site is listed in Euros, indexing the= price field as "10.00EUR" will index it appropriately. By altering the cur= rency.xml file, the sorting and querying against Solr can take into account= fluctuations in currency exchange rates without having to re-index the doc= uments. > The new "money" field type is a polyfield which indexes two fields, one w= hich contains the amount of the value and another which contains the curren= cy code or symbol. The currency metadata (names, symbols, codes, and exchan= ge rates) are expected to be in an xml file which is pointed to by the fiel= d type declaration in the schema.xml. > The current patch is factored such that Money utility functions and confi= guration metadata lie in Lucene (see MoneyUtil and CurrencyConfig), while t= he MoneyType and MoneyValueSource lie in Solr. This was meant to mirror the= work being done on the spacial field types. > This patch has not yet been deployed to production but will be getting us= ed to power the international search capabilities of the search engine at E= tsy. -- 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