Hi, Yes, I put it in data-config.xml, like following
<entity name="x" dataSource="xmlreader" processor="XPathEntityProcessor" url="${f.fileAbsolutePath}" forEach="/abc/def/gh" transformer="NumberFormatTransformer" > <field colum="name" ..... But it's not working on comma separated numbers. Did I miss something? Thanks. --- On Thu, 6/4/09, Noble Paul നോബിള് नोब्ळ् <noble.p...@corp.aol.com> wrote: > From: Noble Paul നോബിള് नोब्ळ् <noble.p...@corp.aol.com> > Subject: Re: Index Comma Separated numbers > To: solr-user@lucene.apache.org > Date: Thursday, June 4, 2009, 9:24 PM > did you try the > NumberFormatTransformer ? > > On Fri, Jun 5, 2009 at 12:09 AM, Jianbin Dai <djian...@yahoo.com> > wrote: > > > > Hi, One of the fields to be indexed is price which is > comma separated, e.g., 12,034.00. How can I indexed it as > a number? > > I am using DIH to pull the data. Thanks. > > > > > > > > > > > > > > -- > ----------------------------------------------------- > Noble Paul | Principal Engineer| AOL | http://aol.com >