lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (SOLR-2221) DIH: use StrUtils.parseBool() to get values of boolean options of import command
Date Mon, 08 Nov 2010 02:31:11 GMT

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

Koji Sekiguchi reassigned SOLR-2221:
------------------------------------

    Assignee: Koji Sekiguchi

> DIH: use StrUtils.parseBool() to get values of boolean options of import command
> --------------------------------------------------------------------------------
>
>                 Key: SOLR-2221
>                 URL: https://issues.apache.org/jira/browse/SOLR-2221
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3, 1.4
>            Reporter: Koji Sekiguchi
>            Assignee: Koji Sekiguchi
>            Priority: Trivial
>             Fix For: 3.1, 4.0
>
>         Attachments: SOLR-2221.patch
>
>
> Currently, debug option for full-import/delta-import accepts only "on" for true:
> {code}
> if ("on".equals(requestParams.get("debug"))) {
>   debug = true;
>   rows = 10;
>   // Set default values suitable for debug mode
>   commit = false;
>   clean = false;
>   verbose = "true".equals(requestParams.get("verbose"))
>           || "on".equals(requestParams.get("verbose"));
> }
> {code}
> and other boolean options uses Boolean.parseBoolean(String). We would like to use StrUtils.parseBool()
that accepts true, on and yes for true, and false, off and no for false.

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message