Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 24574 invoked from network); 3 Aug 2008 15:56:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Aug 2008 15:56:13 -0000 Received: (qmail 19486 invoked by uid 500); 3 Aug 2008 15:56:06 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 19436 invoked by uid 500); 3 Aug 2008 15:56:06 -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 19427 invoked by uid 99); 3 Aug 2008 15:56:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2008 08:56:06 -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; Sun, 03 Aug 2008 15:55:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 48148234C198 for ; Sun, 3 Aug 2008 08:55:44 -0700 (PDT) Message-ID: <976732564.1217778944294.JavaMail.jira@brutus> Date: Sun, 3 Aug 2008 08:55:44 -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=12619339#action_12619339 ] Doron Cohen commented on LUCENE-1310: ------------------------------------- Committed to trunk. I was wondering if this should be backported to 2.3.1 and/or 2.3.2. It is not a major bug so I think not, though it might be critical to some application. Didn't find a guideline for this in the wiki but I may be missing 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: LUCENE-1310.1.patch, LUCENE-1310.patch, LUCENE-1310.patch, LUCENE-1310.patch, LUCENE-1310.patch, LUCENE-1310.patch, LUCENE-2.3.1-1310.patch, 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