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 5785B4539 for ; Wed, 11 May 2011 21:48:33 +0000 (UTC) Received: (qmail 80541 invoked by uid 500); 11 May 2011 21:48:29 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 80457 invoked by uid 500); 11 May 2011 21:48:29 -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 80425 invoked by uid 99); 11 May 2011 21:48:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2011 21:48:29 +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; Wed, 11 May 2011 21:48:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 83B258287C for ; Wed, 11 May 2011 21:47:47 +0000 (UTC) Date: Wed, 11 May 2011 21:47:47 +0000 (UTC) From: "mark risher (JIRA)" To: dev@lucene.apache.org Message-ID: <1114192686.4938.1305150467536.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1981038837.4935.1305150347552.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-2510) Proximity search is not symmetric 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/SOLR-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] mark risher updated SOLR-2510: ------------------------------ Description: The proximity search is incorrect on words occurring *before* the matching term. It matches documents that are _less-than_ N words before and _less-than-or-equal-to_ N words after. For example, use the following document: {{ WORD_A WORD_B WORD_C WORD_D WORD_E WORD_F WORD_G}} __Expected result:__ Both of the following queries should match: 1) {{"WORD_D WORD_G"~3}} 2) {{"WORD_D WORD_A"~3}} __Actual result:__ Only #1 matches. was: The proximity search is incorrect on words occurring *before* the matching term. It matches documents that are _less-than_ N words before and _less-than-or-equal-to_ N words after. For example, use the following document: WORD_A WORD_B WORD_C WORD_D WORD_E WORD_F WORD_G Expected result: Both of the following queries should match: 1) "WORD_D WORD_G"~3 2) "WORD_D WORD_A"~3 Actual result: Only #1 matches. > Proximity search is not symmetric > --------------------------------- > > Key: SOLR-2510 > URL: https://issues.apache.org/jira/browse/SOLR-2510 > Project: Solr > Issue Type: Bug > Components: search, web gui > Affects Versions: 3.1 > Environment: Ubuntu 10.04 > Reporter: mark risher > > The proximity search is incorrect on words occurring *before* the matching term. It matches documents that are _less-than_ N words before and _less-than-or-equal-to_ N words after. > For example, use the following document: > {{ WORD_A WORD_B WORD_C WORD_D WORD_E WORD_F WORD_G}} > __Expected result:__ Both of the following queries should match: > 1) {{"WORD_D WORD_G"~3}} > 2) {{"WORD_D WORD_A"~3}} > __Actual result:__ Only #1 matches. -- This message is automatically generated by JIRA. 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