LongField not stripping leading zeros

2010-01-12 Thread Kevin Osborn
This is in Solr 1.3. I have some text in our database in the form 0088698183939. The leading zeros are useless, but I want to able to search it with no leading zeros or several leading zeros. So, I decided to index this as a long, expecting it to just store it as a number. But, instead, I see

Re: LongField not stripping leading zeros

2010-01-12 Thread Chris Hostetter
: I have some text in our database in the form 0088698183939. The leading : zeros are useless, but I want to able to search it with no leading zeros : or several leading zeros. So, I decided to index this as a long, : expecting it to just store it as a number. But, instead, I see this in : the

Re: LongField not stripping leading zeros

2010-01-12 Thread Kevin Osborn
. From: Chris Hostetter hossman_luc...@fucit.org To: Solr solr-user@lucene.apache.org Sent: Tue, January 12, 2010 3:16:13 PM Subject: Re: LongField not stripping leading zeros : I have some text in our database in the form 0088698183939. The leading : zeros are useless, but I want to able to search

Re: LongField not stripping leading zeros

2010-01-12 Thread Chris Hostetter
: Thanks. Is there any performance penalty vs. LongField? I don't need to The other ones do normalization by converting to a Long internally -- i have no idea if you would see some micro performance benefit in doing the 0 stripping yourself. Sorting a LongField should take less RAM then a