[ 
https://issues.apache.org/jira/browse/SOLR-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yonik Seeley updated SOLR-2275:
-------------------------------

    Attachment: SOLR-2275_optimize.patch

Here's a patch to optimize the mm parsing code a bit (I happened to be looking 
at the code because of this patch).
I did little things like pre-compile patterns,  changed the 
space-around-lessthan pattern to only match if there are spaces to be removed, 
moved that pattern inside the case where '<' was detected, moved to 
Integer.parseInt, etc.


> 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
>             Fix For: 4.0
>
>         Attachments: SOLR-2275-3_x.patch, SOLR-2275.patch, 
> SOLR-2275_optimize.patch
>
>   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