You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2010/11/07 04:13:06 UTC

[jira] Created: (SOLR-2221) DIH: use StrUtils.parseBool() to get values of boolean options of import command

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
    Affects Versions: 1.4, 1.3
            Reporter: Koji Sekiguchi
            Priority: Trivial
             Fix For: 3.1, 4.0


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


[jira] Updated: (SOLR-2221) DIH: use StrUtils.parseBool() to get values of boolean options of import command

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi updated SOLR-2221:
---------------------------------

    Component/s: contrib - DataImportHandler

> 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
>            Priority: Trivial
>             Fix For: 3.1, 4.0
>
>
> 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


[jira] Resolved: (SOLR-2221) DIH: use StrUtils.parseBool() to get values of boolean options of import command

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi resolved SOLR-2221.
----------------------------------

    Resolution: Fixed

trunk: Committed revision 1032446.
branch_3x: Committed revision 1032451.

> 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


[jira] Assigned: (SOLR-2221) DIH: use StrUtils.parseBool() to get values of boolean options of import command

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Updated: (SOLR-2221) DIH: use StrUtils.parseBool() to get values of boolean options of import command

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi updated SOLR-2221:
---------------------------------

    Attachment: SOLR-2221.patch

The patch attached. I'll commit tomorrow.

> 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
>            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