Re: Index Comma Separated numbers
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
Re: Index Comma Separated numbers
I forgot to put formatStyle=number on the field. It works now. Thanks!! --- On Fri, 6/5/09, Jianbin Dai djian...@yahoo.com wrote: From: Jianbin Dai djian...@yahoo.com Subject: Re: Index Comma Separated numbers To: solr-user@lucene.apache.org, noble.p...@gmail.com Date: Friday, June 5, 2009, 12:37 PM 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
Index Comma Separated numbers
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.
Re: Index Comma Separated numbers
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