Re: Index Comma Separated numbers

2009-06-05 Thread Jianbin Dai

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


--- On Fri, 6/5/09, Jianbin Dai  wrote:

> From: Jianbin Dai 
> 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
> 
>                
>                     
>        
>    dataSource="xmlreader"
>                
>        
>    processor="XPathEntityProcessor"
>                
>        
>    url="${f.fileAbsolutePath}"
>                
>        
>    forEach="/abc/def/gh"
>                
>        
>    transformer="NumberFormatTransformer"
>                
>            >
>                
>      
> But it's not working on comma separated numbers.
> Did I miss something?
> 
> Thanks.
> 
> 
> 
> 
> 
> --- On Thu, 6/4/09, Noble Paul നോബിള്‍ 
> नोब्ळ् 
> wrote:
> 
> > From: Noble Paul നോബിള്‍ 
> नोब्ळ् 
> > 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 
> > 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

2009-06-05 Thread Jianbin Dai

Hi,

Yes, I put it in data-config.xml, like following


 wrote:

> From: Noble Paul നോബിള്‍  नोब्ळ् 
> 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 
> 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

2009-06-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
did you try the NumberFormatTransformer ?

On Fri, Jun 5, 2009 at 12:09 AM, Jianbin Dai  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

2009-06-04 Thread Jianbin Dai

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.