Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F22F104FE for ; Mon, 23 Sep 2013 19:09:32 +0000 (UTC) Received: (qmail 97267 invoked by uid 500); 23 Sep 2013 19:09:25 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 97222 invoked by uid 500); 23 Sep 2013 19:09:25 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 97214 invoked by uid 99); 23 Sep 2013 19:09:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Sep 2013 19:09:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: unknown ?allinclude:outlook.com (nike.apache.org: encountered unrecognized mechanism during SPF processing of domain of pk@alpha-solutions.dk) Received: from [213.199.154.77] (HELO emea01-am1-obe.outbound.protection.outlook.com) (213.199.154.77) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Sep 2013 19:09:16 +0000 Received: from AMXPR07MB085.eurprd07.prod.outlook.com (10.242.70.139) by AMXPR07MB085.eurprd07.prod.outlook.com (10.242.70.139) with Microsoft SMTP Server (TLS) id 15.0.775.9; Mon, 23 Sep 2013 19:08:53 +0000 Received: from AMXPR07MB085.eurprd07.prod.outlook.com ([169.254.5.186]) by AMXPR07MB085.eurprd07.prod.outlook.com ([169.254.5.186]) with mapi id 15.00.0775.005; Mon, 23 Sep 2013 19:08:53 +0000 From: Peter Kirk To: "solr-user@lucene.apache.org" Subject: SolrParams to and from NamedList Thread-Topic: SolrParams to and from NamedList Thread-Index: AQHOuI/WM2GvHmllGUKDO6EVOx7/eQ== Date: Mon, 23 Sep 2013 19:08:53 +0000 Message-ID: Accept-Language: da-DK, en-GB, en-US Content-Language: da-DK X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [90.184.244.91] x-forefront-prvs: 09781D4C35 x-forefront-antispam-report: SFV:NSPM;SFS:(199002)(189002)(81342001)(16236675002)(66066001)(65816001)(69226001)(74876001)(81686001)(81816001)(74706001)(74366001)(74316001)(83322001)(19580395003)(80976001)(81542001)(74662001)(74482001)(31966008)(47446002)(54356001)(76176001)(76576001)(76786001)(46102001)(33646001)(51856001)(53806001)(59766001)(77982001)(83072001)(63696002)(56816003)(77096001)(54316002)(47736001)(56776001)(50986001)(47976001)(49866001)(76796001)(4396001)(79102001)(42262001)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:AMXPR07MB085;H:AMXPR07MB085.eurprd07.prod.outlook.com;CLIP:90.184.244.91;FPR:;RD:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: multipart/alternative; boundary="_000_fbb72ce2e5fc4ec0a1424182a1090182AMXPR07MB085eurprd07pro_" MIME-Version: 1.0 X-OriginatorOrg: alpha-solutions.dk X-Virus-Checked: Checked by ClamAV on apache.org --_000_fbb72ce2e5fc4ec0a1424182a1090182AMXPR07MB085eurprd07pro_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, In a request-handler, if I run the below code, I get an exception from Solr undefined field: "[Ljava.lang.String;@41061b68" It appears the conversion between SolrParams and NamedList and back again f= ails if one of the parameters is an array. This could be a couple of config= uration parameters like category author public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) = throws Exception { SolrParams params =3D req.getParams(); NamedList parameterList =3D params.toNamedList(); SolrParams newSolrParams =3D SolrParams.toSolrParams(parameterList); req.setParams(newSolrParams); super.handleRequestBody(req, rsp); How can I generate the correct conversion? Thanks. --_000_fbb72ce2e5fc4ec0a1424182a1090182AMXPR07MB085eurprd07pro_--