Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 84954 invoked from network); 26 Jun 2008 16:30:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 16:30:07 -0000 Received: (qmail 90611 invoked by uid 500); 26 Jun 2008 16:30:07 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 90560 invoked by uid 500); 26 Jun 2008 16:30:07 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 90551 invoked by uid 99); 26 Jun 2008 16:30:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 09:30:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 16:29:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1B877234C154 for ; Thu, 26 Jun 2008 09:29:45 -0700 (PDT) Message-ID: <1769472255.1214497785111.JavaMail.jira@brutus> Date: Thu, 26 Jun 2008 09:29:45 -0700 (PDT) From: "Doron Cohen (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1310) Phrase query with term repeated 3 times requires more slop than expected In-Reply-To: <709803141.1213933785211.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608484#action_12608484 ] Doron Cohen commented on LUCENE-1310: ------------------------------------- I am too getting the error with the test. It is a bug indeed. I think I see where the problem is - working on it. > Phrase query with term repeated 3 times requires more slop than expected > ------------------------------------------------------------------------ > > Key: LUCENE-1310 > URL: https://issues.apache.org/jira/browse/LUCENE-1310 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 2.3.1, 2.3.2 > Reporter: Grant Glouser > Assignee: Doron Cohen > Attachments: TestSloppyPhraseQuery.java > > > Consider a document with the text "A A A". > The phrase query "A A A" (exact match) succeeds. > The query "A A A"~1 (same document and query, just increasing the slop value by one) fails. > "A A A"~2 succeeds again. > If the exact match succeeds, I wouldn't expect the same query but with more slop to fail. The fault seems to require some term to be repeated at least three times in the query, but the three occurrences do not need to be adjacent. I will attach a file that contains a set of JUnit tests that demonstrate what I mean. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org