From user-return-4345-archive-asf-public=cust-asf.ponee.io@lucenenet.apache.org Wed Jan 10 14:23:56 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 6207B18072F for ; Wed, 10 Jan 2018 14:23:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 522F6160C2E; Wed, 10 Jan 2018 13:23:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 95880160C23 for ; Wed, 10 Jan 2018 14:23:55 +0100 (CET) Received: (qmail 57701 invoked by uid 500); 10 Jan 2018 13:23:49 -0000 Mailing-List: contact user-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucenenet.apache.org Delivered-To: mailing list user@lucenenet.apache.org Received: (qmail 57685 invoked by uid 99); 10 Jan 2018 13:23:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2018 13:23:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 18261C16F0 for ; Wed, 10 Jan 2018 13:23:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[none] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id c9ta8w5QSA1d for ; Wed, 10 Jan 2018 13:23:46 +0000 (UTC) Received: from ex10cshbfe01.apps4rent.net (ex10cshbfe01.apps4rent.net [69.160.246.194]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 3E3B75F36C for ; Wed, 10 Jan 2018 13:23:46 +0000 (UTC) Received: from EX10DAG10-N1.apps4rent.net ([10.10.10.123]) by EX10CSHBFE01 ([10.10.10.113]) with mapi id 14.03.0319.002; Wed, 10 Jan 2018 05:23:39 -0800 From: Shad Storhaug To: "user@lucenenet.apache.org" Subject: RE: Lucene .Net Leading Zeros Issue Thread-Topic: Lucene .Net Leading Zeros Issue Thread-Index: AdOIqcBYfiteDUCmSl2wJppd20IP3ABa5aaQ Date: Wed, 10 Jan 2018 13:23:38 +0000 Message-ID: <458A3CD4F362D144B999930AAADEBAAD2DF45FAE@EX10DAG10-N1> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [101.109.140.94] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 This bug was fixed (along with several hundred others) in Lucene.Net-beta00= 005 on NuGet: https://www.nuget.org/packages/Lucene.Net/ The solution is to upgrade to the latest version. Thanks, Shad Storhaug (NightOwl888) -----Original Message----- From: Joao.Faria [mailto:Joao.Faria@portima.com]=20 Sent: Tuesday, January 9, 2018 1:00 AM To: user@lucenenet.apache.org Subject: Lucene .Net Leading Zeros Issue 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 S= tringField class. What is happening is that somehow Lucene is converting this value to an Int= 64, 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,