Thanks and sorry, forgot to include XML In data config:
<field column="ProductName" xpath="/products/product/ProductName" /> The Xml node: <ProductName><![CDATA[1969 Harley Davidson Ultimate Chopper]]></ProductName> Is the the CDATA section causing this? Radek. On Mon, Oct 29, 2012 at 9:10 PM, Jack Krupansky <j...@basetechnology.com>wrote: > Sounds like it is multivalued - the square brackets indicate an array. > > -- Jack Krupansky > > -----Original Message----- From: Radek Zajkowski > Sent: Monday, October 29, 2012 8:37 PM > To: solr-user@lucene.apache.org > Subject: row.get() in script transformer adds square brackets [] to string > value > > > Hi all, > > would you know why I get (notice square brackets) > > [1969 Harley Davidson Ultimate Chopper] > > not > > 1969 Harley Davidson Ultimate Chopper > > when calling > > var description = row.get("ProductName").**toString(); > > in a script transformer? > > Thank you, > > Radek. >