Hi,

Sebastian Schulz schrieb:
> 
> hi,
> 
> when using a StopAnalyzer and trying a exact phrase, which contains
> a Token from the StopTable, this Token is eliminated by the
> QueryParser.
> 
> example:
>    phrase: "he is cool and also a bit daisy"
>    QueryParser creates: "he cool also bit daisy"
> 
> correct me if i'm wrong, but for me this is not the
> right behavior, QueryParser should let phrases
> unchanged.

No, if you have indexed with the same StopAnalyzer/Filter, the 
Stopwords doesn't exist in the Index. The Phrase is indexed 
without the Stopwords, so the Query without stopwords should
do the job. If you use the full phrase with the Stopwords, the 
Stopwords are missing in the Index and you will get no Hits.

Correct me if I'm wrong. ;)

> basti

Gerhard

_______________________________________________
Lucene-users mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-users

Reply via email to