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 88FFC9A96 for ; Sat, 28 Jan 2012 10:12:02 +0000 (UTC) Received: (qmail 44549 invoked by uid 500); 28 Jan 2012 10:12:00 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 43310 invoked by uid 500); 28 Jan 2012 10:11:39 -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 43239 invoked by uid 99); 28 Jan 2012 10:11:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jan 2012 10:11:33 +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; Sat, 28 Jan 2012 10:11:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D332216918E for ; Sat, 28 Jan 2012 10:11:10 +0000 (UTC) Date: Sat, 28 Jan 2012 10:11:10 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28Commented=29_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: <526987556.3981.1327745470866.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 [ https://issues.apache.org/jira/browse/SOLR-2202?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13195= 477#comment-13195477 ]=20 Jan H=C3=B8ydahl commented on SOLR-2202: ----------------------------------- This is great! I'll see if I can test it a bit more next week, and see if I= spot any bugs or improvements. This will be a great addition. It would be kind of nice to demo the fieldType in all the prices in the exa= mpledocs. Then we need to change fieldType of the "price" field to MoneyTyp= e etc. Only problem then is that we cannot demo price range facets in /brow= se as we do now. Do anyone know what it takes to make range facets work with this field type= ? And a minor one: Why do we call the class MoneyType? All the other fields a= re called XxxField (except for the LatLonType and PointType). Is this inten= tional. To me it would sound even better with "CurrencyField" :) =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, S= OLR-2202.patch, SOLR-2202.patch > > > Provides support for monetary values to Solr/Lucene with query-time curre= ncy conversion. The following features are supported: > - Point queries > - Range quries > - 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 "1000,EUR" 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 will be getting used to power the international search capabil= ities of the search engine at Etsy. > Also see WIKI page: http://wiki.apache.org/solr/MoneyFieldType -- 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