lucenenet-user mailing list archives

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

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
class.
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:

Lucene.Net 4.8.0.770-beta

Best regards,




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