lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: accessing the query string from inside TokenFilter
Date Sat, 29 Oct 2011 21:23:33 GMT
On Sat, Oct 29, 2011 at 4:27 PM, Chris Hostetter
<hossman_lucene@fucit.org> 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


Mime
View raw message