Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A15A8102D9 for ; Wed, 24 Apr 2013 19:19:17 +0000 (UTC) Received: (qmail 36363 invoked by uid 500); 24 Apr 2013 19:19:16 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 36298 invoked by uid 500); 24 Apr 2013 19:19:16 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 36286 invoked by uid 99); 24 Apr 2013 19:19:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Apr 2013 19:19:16 +0000 Date: Wed, 24 Apr 2013 19:19:16 +0000 (UTC) From: "Tim Allison (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-4880) Difference in offset handling between IndexReader created by MemoryIndex and one created by RAMDirectory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13640816#comment-13640816 ] Tim Allison commented on LUCENE-4880: ------------------------------------- Thank you! > Difference in offset handling between IndexReader created by MemoryIndex and one created by RAMDirectory > -------------------------------------------------------------------------------------------------------- > > Key: LUCENE-4880 > URL: https://issues.apache.org/jira/browse/LUCENE-4880 > Project: Lucene - Core > Issue Type: Bug > Components: core/index > Affects Versions: 4.2 > Environment: Windows 7 (probably irrelevant) > Reporter: Tim Allison > Fix For: 5.0, 4.3 > > Attachments: LUCENE-4880.patch, MemoryIndexVsRamDirZeroLengthTermTest.java > > > MemoryIndex skips tokens that have length == 0 when building the index; the result is that it does not increment the token offset (nor does it store the position offsets if that option is set) for tokens of length == 0. A regular index (via, say, RAMDirectory) does not appear to do this. > When using the ICUFoldingFilter, it is possible to have a term of zero length (the \u0640 character separated by spaces). If that occurs in a document, the offsets returned at search time differ between the MemoryIndex and a regular index. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org