You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (Issue Comment Edited JIRA)" <ji...@apache.org> on 2012/02/24 08:47:03 UTC

[jira] [Issue Comment Edited] (SOLR-2202) Money FieldType

    [ https://issues.apache.org/jira/browse/SOLR-2202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210893#comment-13210893 ] 

Jan Høydahl edited comment on SOLR-2202 at 2/24/12 7:46 AM:
------------------------------------------------------------

Had no chance to get back to this yet. Afraid I won't have time next week either :(

In the mean time, perhaps other committers could chime in with their views on preferred naming?
a) MoneyType
b) MoneyField
c) CurrencyType
d) CurrencyField

As for range facets, I'll open a new issue once the basics for this is committed.
                
      was (Author: janhoy):
    Had no chance to get back to this yet. Afraid I won't have time next week either :(

In the mean time, perhaps other committers could chime in with their views on preferred naming and range faceting?
                  
> 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øydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2022-solr-3.patch, SOLR-2202-lucene-1.patch, SOLR-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-2202-solr-8.patch, SOLR-2202-solr-9.patch, SOLR-2202.patch, SOLR-2202.patch, SOLR-2202.patch, SOLR-2202.patch
>
>
> Provides support for monetary values to Solr/Lucene with query-time currency 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 useful if there are fees associated with exchanging the currency.)
> At indexing time, money fields can be indexed in a native currency. For example, 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 currency.xml file, the sorting and querying against Solr can take into account fluctuations in currency exchange rates without having to re-index the documents.
> The new "money" field type is a polyfield which indexes two fields, one which contains the amount of the value and another which contains the currency code or symbol. The currency metadata (names, symbols, codes, and exchange rates) are expected to be in an xml file which is pointed to by the field type declaration in the schema.xml.
> The current patch is factored such that Money utility functions and configuration metadata lie in Lucene (see MoneyUtil and CurrencyConfig), while the 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 capabilities 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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


Re: [jira] [Issue Comment Edited] (SOLR-2202) Money FieldType

Posted by Erick Erickson <er...@gmail.com>.
Go for CurrencyType IMO. Although I think either is reasonalble

On Fri, Feb 24, 2012 at 2:47 AM, Jan Høydahl (Issue Comment Edited)
(JIRA) <ji...@apache.org> wrote:
>
>    [ https://issues.apache.org/jira/browse/SOLR-2202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210893#comment-13210893 ]
>
> Jan Høydahl edited comment on SOLR-2202 at 2/24/12 7:46 AM:
> ------------------------------------------------------------
>
> Had no chance to get back to this yet. Afraid I won't have time next week either :(
>
> In the mean time, perhaps other committers could chime in with their views on preferred naming?
> a) MoneyType
> b) MoneyField
> c) CurrencyType
> d) CurrencyField
>
> As for range facets, I'll open a new issue once the basics for this is committed.
>
>      was (Author: janhoy):
>    Had no chance to get back to this yet. Afraid I won't have time next week either :(
>
> In the mean time, perhaps other committers could chime in with their views on preferred naming and range faceting?
>
>> 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øydahl
>>             Fix For: 3.6, 4.0
>>
>>         Attachments: SOLR-2022-solr-3.patch, SOLR-2202-lucene-1.patch, SOLR-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-2202-solr-8.patch, SOLR-2202-solr-9.patch, SOLR-2202.patch, SOLR-2202.patch, SOLR-2202.patch, SOLR-2202.patch
>>
>>
>> Provides support for monetary values to Solr/Lucene with query-time currency 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 useful if there are fees associated with exchanging the currency.)
>> At indexing time, money fields can be indexed in a native currency. For example, 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 currency.xml file, the sorting and querying against Solr can take into account fluctuations in currency exchange rates without having to re-index the documents.
>> The new "money" field type is a polyfield which indexes two fields, one which contains the amount of the value and another which contains the currency code or symbol. The currency metadata (names, symbols, codes, and exchange rates) are expected to be in an xml file which is pointed to by the field type declaration in the schema.xml.
>> The current patch is factored such that Money utility functions and configuration metadata lie in Lucene (see MoneyUtil and CurrencyConfig), while the 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 capabilities 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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org