Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41DC29BD0 for ; Thu, 29 Sep 2011 16:32:31 +0000 (UTC) Received: (qmail 66412 invoked by uid 500); 29 Sep 2011 16:32:28 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 66366 invoked by uid 500); 29 Sep 2011 16:32:28 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 66358 invoked by uid 99); 29 Sep 2011 16:32:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 16:32:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of solr@elyograg.org designates 166.70.79.219 as permitted sender) Received: from [166.70.79.219] (HELO frodo.elyograg.org) (166.70.79.219) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 16:32:20 +0000 Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id 7C26C2315 for ; Thu, 29 Sep 2011 10:31:58 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:subject :subject:mime-version:user-agent:from:from:date:date:message-id :received:received; s=mail; t=1317313918; bh=oT3ZGDXAxJHTqWdpt9t cCATXeR0bYjXHYWyjsLHiHKw=; b=NiTETKAio/0pYTcgpnPPXTp2itMBqZM10KW LDTiR6PLTd80PhDSatBzcM4brp3Z187oI/X+P2hsyZdU/KhbxCckMTdJ9Bmll1h1 JkxQsGsB4PcL6seFvB7kbB4Gk/SZt2J9s/g3XDh9b1gkIX7iSzzLR+KWafUB0uwq D1IjMGRk= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id idQ1kEqey6n5 for ; Thu, 29 Sep 2011 10:31:58 -0600 (MDT) Received: from [10.2.0.100] (client175.mainstreamdata.com [209.63.42.175]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id 116EAB9B for ; Thu, 29 Sep 2011 10:31:57 -0600 (MDT) Message-ID: <4E849D7D.7060900@elyograg.org> Date: Thu, 29 Sep 2011 10:31:57 -0600 From: Shawn Heisey User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20110922 Thunderbird/7.0 MIME-Version: 1.0 To: solr-user@lucene.apache.org Subject: Query with plus sign failing Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org The following query is failing: ((Google +)) This is ultimately reduced to 'google' by my analysis chain, but the following is in my log (3.2.0, but 3.4.0 also fails): SEVERE: org.apache.solr.common.SolrException: org.apache.lucene.queryParser.ParseException: Cannot parse '( (Google +))': Encountered " ")" ") "" at line 1, column 12. If I change it to 'Google+' or 'Goo+gle' it works. Below is the fieldType definition. The pattern filter is designed to strip leading/trailing punctuation characters, but leave any punctuation in the middle of a term alone. It does affect the plus sign, by reducing it to a term of length zero. The length filter then removes it at the end. In the 'Google+' variant, the pattern filter simply strips that character off and the query does not fail. Am I seeing a bug here, or problems with my fieldType?