lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joao.Faria <>
Subject Lucene .Net Leading Zeros Issue
Date Mon, 08 Jan 2018 18:00:26 GMT

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,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message