Re: When does QueryParser creates PhraseQueries

2008-02-29 Thread duiduder
-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

Re: When does QueryParser creates PhraseQueries

2008-02-28 Thread Daniel Noll
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

Re: When does QueryParser creates PhraseQueries

2008-02-26 Thread duiduder
-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"; ~

Re: When does QueryParser creates PhraseQueries

2008-02-26 Thread duiduder
-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 ~

Re: When does QueryParser creates PhraseQueries

2008-02-25 Thread Daniel Noll
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

When does QueryParser creates PhraseQueries

2008-02-25 Thread duiduder
-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