-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thanks a lot for your help Daniel, I have found a solution :)
The 'token' field is public inside QueryParser, and inside
'token.image' you can read the origin String with apostrophe.
Thus, I can differ between the two situations - and simply
return
On Wednesday 27 February 2008 00:50:04 [EMAIL PROTECTED] wrote:
> Looks that this is really hard-coded behaviour, and not Analyzer-specific.
The whitespace part is coded into QueryParser.jj, yes. So are the quotes
and : and other query-specific things.
> I want to search for directories with to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
So, I stepped throw the QueryParser code further, and I now
have found the source for this behaviour: the QueryParserTokenManager
~System.out.println("This one returns the whole String:");
~String strQuery = "home/reuschling";
~
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Daniel, thank you very much for the hint!
I stepped through the code and tried some scenarios.
when I type in with whitespace delimiters
~ termA termB
this will result into two invocations of getFieldQuery, one for each term.
when I type
~
On Tuesday 26 February 2008 01:05:27 [EMAIL PROTECTED] wrote:
> Hi all,
>
> I have the behaviour that when I search with Luke (version 0.7.1, Lucene
> version 2.2.0) inside an arbritray field, the QueryParser creates a
> PhraseQuery when I type in
> ~ termA/termB (no "...")
> When
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
I have the behaviour that when I search with Luke (version 0.7.1, Lucene
version 2.2.0) inside an arbritray field, the QueryParser creates a PhraseQuery
when I type in
~ termA/termB (no "...")
When I read the documentation a