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 72CD49C3C for ; Sat, 29 Oct 2011 21:24:20 +0000 (UTC) Received: (qmail 84742 invoked by uid 500); 29 Oct 2011 21:24:19 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 84684 invoked by uid 500); 29 Oct 2011 21:24:19 -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 84676 invoked by uid 99); 29 Oct 2011 21:24:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2011 21:24:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rcmuir@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2011 21:24:14 +0000 Received: by wwg9 with SMTP id 9so124042wwg.5 for ; Sat, 29 Oct 2011 14:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=2ibm19Z1GWgr6hsdjzOZOJYhX3LFdSoF3kE98/GKKXs=; b=oApuoMobXZt6FDX8fxwEqV9xRZeWFCT2fHZ/sZfPmVMCzg4NjzYGG44QqCbhqFmEXj fuCFdA6MKzqVlaYAzVXViGzQC0+J+xFt0xoMaH8oykHz+/z6O3Uk4QMq00RsyowDpH2w OBeDKnbNlWLqmlzzNtb/X6cHBBnIyMQR94tGA= Received: by 10.216.198.224 with SMTP id v74mr1211945wen.41.1319923433113; Sat, 29 Oct 2011 14:23:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.37.68 with HTTP; Sat, 29 Oct 2011 14:23:33 -0700 (PDT) In-Reply-To: References: <13859_1319610774_ZZh0E6sgDOzLm.00_4EA7A996.20400@uni-bielefeld.de> <00f901cc93ac$a6bb4310$f431c930$@thetaphi.de> <00fd01cc93b1$74d321b0$5e796510$@thetaphi.de> <13862_1319616364_ZZh1E5s0Z_oYx.00_4EA7BF69.6010108@uni-bielefeld.de> <010801cc93b8$e6a859c0$b3f90d40$@thetaphi.de> <29318_1319630754_ZZh1E4t4R7Cuh.00_4EA7F7A1.1000002@uni-bielefeld.de> From: Robert Muir Date: Sat, 29 Oct 2011 17:23:33 -0400 Message-ID: Subject: Re: accessing the query string from inside TokenFilter To: dev@lucene.apache.org Content-Type: text/plain; charset=UTF-8 On Sat, Oct 29, 2011 at 4:27 PM, Chris Hostetter wrote: > > : The bug is that QueryParser tries to be a Tokenizer and breaks on whitespace. > : Allowing tokenizer access to the query string would just mean that > > Calling this a bug in the QUeryParser is grossly missleading -- it's like > saying that QueryParser is buggy because it does parsing on whitespace > characters is like saying it's buggy because it doesn't treat + and - as > literal input characters. its not really misleading. Its a bug. > > if this isn't the parsing behavior that you want, then either escape the > whitespace characters, or don't use the Lucene QueryParser -- use some > other parser that doesn't have meta characters. > the queryparser's grammer/behavior is hardly set in stone. we can improve it, thats why the issue is open for anyone that figures out a good solution here. -- lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org