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

Erick Erickson commented on SOLR-2275:
--------------------------------------

I've attached a patch for this issue. It may be a little bit of overkill, but 
it handles random whitespace in various expressions, I've updated the tests by 
adding spaces around various expressions. For instance, " 3 < -25% 10 < -3\n", 
" \n-25%\n ", " \n3\n ".

Let me know if there are changes you'd like to see...


> Spaces around mm parameter in dismax configuration cause NumberFormatException
> ------------------------------------------------------------------------------
>
>                 Key: SOLR-2275
>                 URL: https://issues.apache.org/jira/browse/SOLR-2275
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>    Affects Versions: Next
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Any whitespace around simple mm parameters in the configuration file produces 
> a NumberFormatException at SolrPluginUtils.java:625. E.g. <str> 2 <str>. 
> Adding whitespace in tests also causes this error to occur.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to