lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JA Purcell <9urc...@gmail.com>
Subject Re: Lucene .Net Leading Zeros Issue
Date Mon, 08 Jan 2018 18:56:51 GMT
Hi,

I would try storing it as a Numeric Field, but I can't say for sure if it
keeps trailing zeroes.

Adam

On Mon, Jan 8, 2018 at 10:16 AM Joao.Faria <Joao.Faria@portima.com> wrote:

> 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