lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miklós Márton (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-3878) NPE in CurrencyValue.parse() while issuing wildcard range query on a CurrencyField
Date Tue, 25 Sep 2012 00:48:07 GMT

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

Miklós Márton commented on SOLR-3878:
-------------------------------------

Hoss says something... Either way: I'm pretty happy that it's already solved. :]

I hate to nitpick, but as I checked the source (always happy to learn something), I noticed
a typo in the block comment above CurrencyValue.parse():
{code}
   * <p/>
   * Currency values are expected to be in the format &lt;amount&gt;,&lt;currency
code&gt;,
   * for example, "500,USD" would represent 5 U.S. Dollars.
   * <p/>
{code}

I assume it should be "... *500* U.S. Dollars ..."

                
> NPE in CurrencyValue.parse() while issuing wildcard range query on a CurrencyField
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-3878
>                 URL: https://issues.apache.org/jira/browse/SOLR-3878
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 3.6.1, 4.0-BETA
>            Reporter: Miklós Márton
>            Assignee: Jan Høydahl
>            Priority: Critical
>             Fix For: 4.0, 4.1, 5.0
>
>         Attachments: SOLR-3878.patch
>
>
> According to the [wiki|http://wiki.apache.org/solr/CurrencyField#Querying] wildcard range
queries are supported. In reality either of the following queries result in NPE using the
example schema.
> - price_c:[* TO 1000]
> - price_c:[* TO 1000,USD]
> - price_c:[*,USD TO 1000,USD]
> - price_c:[1000 TO *]
> - price_c:[1000,USD TO *]
> - price_c:[1000,USD TO *]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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


Mime
View raw message