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 this in the index:

<arr name="upcean">
   <long>0088698183939</long>
</arr>

Shouldn't the leading zeros be gone since this is a number. And when I search 
on it, I only get a hit if I include two leading zeros. I could just clean 
everything on both index and search time, but could someone explain what is 
going on here? Thanks.



      

Reply via email to