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 6E9049706 for ; Thu, 15 Mar 2012 17:30:01 +0000 (UTC) Received: (qmail 80326 invoked by uid 500); 15 Mar 2012 17:30:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 80259 invoked by uid 500); 15 Mar 2012 17:30:00 -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 80225 invoked by uid 99); 15 Mar 2012 17:30:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 17:30:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 17:29:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B945322FF2 for ; Thu, 15 Mar 2012 17:29:37 +0000 (UTC) Date: Thu, 15 Mar 2012 17:29:37 +0000 (UTC) From: "Michael McCandless (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <1488471577.19781.1331832577760.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1251408049.20185.1330890059114.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3848) basetokenstreamtestcase should fail if tokenstream starts with posinc=0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230341#comment-13230341 ] Michael McCandless commented on LUCENE-3848: -------------------------------------------- +1 > basetokenstreamtestcase should fail if tokenstream starts with posinc=0 > ----------------------------------------------------------------------- > > Key: LUCENE-3848 > URL: https://issues.apache.org/jira/browse/LUCENE-3848 > Project: Lucene - Java > Issue Type: Bug > Reporter: Robert Muir > Fix For: 4.0 > > Attachments: LUCENE-3848-MockGraphTokenFilter.patch, LUCENE-3848.patch, LUCENE-3848.patch > > > This is meaningless for a tokenstream to start with posinc=0, > Its also caused problems and hairiness in the indexer (LUCENE-1255, LUCENE-1542), > and it makes senseless tokenstreams. We should add a check and fix any that do this. > Furthermore the same bug can exist in removing-filters if they have enablePositionIncrements=false. > I think this option is useful: but it shouldnt mean 'allow broken tokenstream', it just means we > don't add gaps. > If you remove tokens with enablePositionIncrements=false it should not cause the TS to start with > positionincrement=0, and it shouldnt 'restructure' the tokenstream (e.g. moving synonyms on top of a different word). > It should just not add any 'holes'. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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