> Yes. Both single-word queries (foo) and phrase queries ("foo bar") are
> treated the same way -- the words are piped through the analyzer,
> and depending on how many tokens come back, it creates a PhraseQuery
> or a TermQuery element, or no element at all. The clause-combining
> logic doesn't get upset if no query element comes back at all.
What if the query is '+strong force' and 'strong' is tokenized into
'strong' and the alias 'tough' ? Will the query parser convert it to
'+(strong OR tough) force' ?
> If the analyzer converts 'strong' -> strong tough, and will -> null, then
> the query /strong will/ will become (strong tough), and /+"strong will"/
> will become (+"strong tough").
Isn't the double quote notation "term term" indicates a phrase ? If so,
translating '+strong will' to +("strong tough") (a phrase) does not seem
right since
you now require both 'strong' and 'tough' to appear in indexed document and
in that order. I think the geenrated multi terms should have an OR relation.
>
> > I think this is clear from the syntax.
>
> Only if you know how to read syntax specifications. Not everyone who
> is going to use the query parser does. Remember, the query parser is
> aimed at users who don't know what the word 'syntax' means.
The FAQ is aimed at programmers that embed Lucene in there application and
not
at their end users.
Tal
>
>
_______________________________________________
Lucene-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-dev