Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 22064 invoked from network); 8 Nov 2010 02:31:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 02:31:03 -0000 Received: (qmail 20264 invoked by uid 500); 8 Nov 2010 02:31:33 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 20182 invoked by uid 500); 8 Nov 2010 02:31:33 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 20175 invoked by uid 99); 8 Nov 2010 02:31:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 02:31:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 02:31:32 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA82VCRm013443 for ; Mon, 8 Nov 2010 02:31:12 GMT Message-ID: <5247738.67511289183472001.JavaMail.jira@thor> Date: Sun, 7 Nov 2010 21:31:11 -0500 (EST) From: "Koji Sekiguchi (JIRA)" To: dev@lucene.apache.org Subject: [jira] Assigned: (SOLR-2221) DIH: use StrUtils.parseBool() to get values of boolean options of import command In-Reply-To: <11370891.61011289099586767.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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