lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shad Storhaug <>
Subject RE: Lucene .Net Leading Zeros Issue
Date Wed, 10 Jan 2018 13:23:38 GMT
This bug was fixed (along with several hundred others) in Lucene.Net-beta00005 on NuGet:

The solution is to upgrade to the latest version.

Shad Storhaug (NightOwl888)

-----Original Message-----
From: Joao.Faria [] 
Sent: Tuesday, January 9, 2018 1:00 AM
Subject: Lucene .Net Leading Zeros Issue


I'm finding hard to tackle a specific use case with Lucene.

I'm trying to index a field with the following value: 0075.

>From my understanding this field should be indexed as a String. So, I use StringField
What is happening is that somehow Lucene is converting this value to an Int64, and storing
the value 75 so when I retrieve the value from the index I get 75 instead of 0075.

Can you please help me here?
Lucene Version:


Best regards,

View raw message