Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 39028 invoked from network); 24 Jan 2011 22:16:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2011 22:16:00 -0000 Received: (qmail 99435 invoked by uid 500); 24 Jan 2011 22:15:57 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 99386 invoked by uid 500); 24 Jan 2011 22:15:57 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 99378 invoked by uid 99); 24 Jan 2011 22:15:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 22:15:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adrianocrestani@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 22:15:49 +0000 Received: by wye20 with SMTP id 20so4740527wye.35 for ; Mon, 24 Jan 2011 14:15:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=PKQ8B+44++bVg0lPFOx5cvJas6+6foEEJtCE0jwnbLI=; b=Wj/Fildm3mVR50wLqOL7H3UrgLM9ctFubsaMeDdEMry1sgSswUgiNKmA1Vc2lSedUN knD9XI/RZjfrPxnt0PpoWMT/HyMcjC7x02eqPaxJylHRCJi33d0v/n9MEQUB82lZDYUr A5lI1KcqoJvOErXPvo5qI7uR3ujngSG1NupeM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=qFJvd8AvrDGNZYi1f0P4bQi9U4TxN+1Js0GJN6OY6BlQ2sPfrWrfPjNIMYH43ewtAK vkTlEqEEKwLjBb/njR23zDI2gb9XAFi8ffTQuEojb5M2ysJzyKr5EuDRSDjDizYqp21w sC1yfozBcmdk9SlBLEt45So3J9OoL7eLJdLkg= Received: by 10.216.156.149 with SMTP id m21mr3010535wek.22.1295907328927; Mon, 24 Jan 2011 14:15:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.244.206 with HTTP; Mon, 24 Jan 2011 14:15:08 -0800 (PST) In-Reply-To: References: From: Adriano Crestani Date: Mon, 24 Jan 2011 17:15:08 -0500 Message-ID: Subject: Re: Query parse errors for dashes in Lucene (3.0.3) To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001485f4541800cf13049a9ef0de X-Virus-Checked: Checked by ClamAV on apache.org --001485f4541800cf13049a9ef0de Content-Type: text/plain; charset=ISO-8859-1 It's valid syntax error, since - is the exclusion operator, so the QP expects a term, phrase, parenthesis, etc after that. On Mon, Jan 24, 2011 at 5:05 PM, Andrew Kane wrote: > Shouldn't these two queries be fine? (from TREC million query track). > Should this be entered as a bug? > > Thanks, > > Andrew. > > > > Cannot parse 'statistics on child labor laws 1930 -': Encountered "" > at > line 1, column 37. > Was expecting one of: > "(" ... > "*" ... > ... > ... > ... > ... > "[" ... > "{" ... > ... > ... > "*" ... > > Cannot parse 'u.s. census bureau local employment dynamics --': Encountered > " "-" "- "" at line 1, column 46. > Was expecting one of: > "(" ... > "*" ... > ... > ... > ... > ... > "[" ... > "{" ... > ... > ... > "*" ... > --001485f4541800cf13049a9ef0de--