Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 15870 invoked from network); 23 Oct 2010 14:44:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Oct 2010 14:44:47 -0000 Received: (qmail 25216 invoked by uid 500); 23 Oct 2010 14:44:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 25003 invoked by uid 500); 23 Oct 2010 14:44:44 -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 24995 invoked by uid 99); 23 Oct 2010 14:44:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Oct 2010 14:44:43 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Oct 2010 14:44:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9NEiJsD001470 for ; Sat, 23 Oct 2010 14:44:20 GMT Message-ID: <8571304.42181287845059845.JavaMail.jira@thor> Date: Sat, 23 Oct 2010 10:44:19 -0400 (EDT) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2566) + - operators allow any amount of whitespace In-Reply-To: <9815779.587551280156750148.JavaMail.jira@thor> 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-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yonik Seeley updated LUCENE-2566: --------------------------------- Attachment: LUCENE-2566.patch Here's a patch that stops treating +, -, ! as operators if they are followed by whitespace. Everyone seemed to previously agree about + and -, but I also threw in ! for consistency since it was another single char (largely unknown synonym for NOT) unary operator. Thoughts? > + - operators allow any amount of whitespace > -------------------------------------------- > > Key: LUCENE-2566 > URL: https://issues.apache.org/jira/browse/LUCENE-2566 > Project: Lucene - Java > Issue Type: Bug > Components: QueryParser > Reporter: Yonik Seeley > Priority: Minor > Attachments: LUCENE-2566.patch > > > As an example, (foo - bar) is treated like (foo -bar). > It seems like for +- to be treated as unary operators, they should be immediately followed by the operand. -- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org