lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jianbin Dai <djian...@yahoo.com>
Subject Re: Index Comma Separated numbers
Date Fri, 05 Jun 2009 21:24:41 GMT

I forgot to put formatStyle="number" on the field. 
It works now. Thanks!!


--- On Fri, 6/5/09, Jianbin Dai <djianbin@yahoo.com> wrote:

> From: Jianbin Dai <djianbin@yahoo.com>
> Subject: Re: Index Comma Separated numbers
> To: solr-user@lucene.apache.org, noble.paul@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.paul@corp.aol.com>
> wrote:
> 
> > From: Noble Paul നോബിള്‍ 
> नोब्ळ् <noble.paul@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 <djianbin@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
> > 
> 
> 
> 
> 
> 


      


Mime
View raw message