Just took a quick peak at the MultiPhraseQuery toString() and it does indeed wrap the query in quotes (it also puts in the parenthesis). You are generating a MultiPhraseQuery. Is that not your intent?. The QueryParser will generate a MultiPhraseQuery when more than one token with different positions are emmited from the analyzer and at least one of the positions has multiple tokens associated with it. I believe this should be a pretty common phenomenon with a synonym analyzer.

I would look into your Analyzer...my guess is that it has not been perfected. You are indexing and searching with the same analyzer, correct?

- Mark Miller

Alice wrote:
It does not work.

Even with the synonyms indexed it is not found.

That's why my guess was to remove the "" but I don’t know how.

-----Original Message-----
From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: terça-feira, 5 de dezembro de 2006 18:34
To: java-user@lucene.apache.org
Subject: Re: Customized Analyzer

On Tuesday 05 December 2006 20:14, Alice wrote:

It returns
content:"(wind window)"

That might be the correct representation of a MultiPhraseQuery. So does your query work anyway? It's just that you cannot use QueryParser again to parse this output (similar to some other queries like SpanQueries whose toString() representation also cannot be parsed again).

Regards
 Daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to