You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by P....@CS.unimaas.nl on 2002/03/27 14:37:41 UTC
StopFilter-troubles
Dear Lucene-users,
has someone an answer to the following question:
If I add a StopFilter to my Analyzer, the stopwords I gave him will be left
out the query. So far, so good. But when my query is like this one: (field1
: xxxxx) AND (field2 : stopword) AND (field 1 : yyyyy)
the StopFilter will do its work, but the resulting query is a big mess :
(field1 : xxxxx) AND ( ) AND (field 1 : yyyyy), and because of that the
searching results ara no good. I hoped it would search for (field1 : xxxxx)
AND (field 1 : yyyyy).
I think the StopFilter does a poor job here. Is anyone familiar with this
problem and has an answer for me?
Puk Witte.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: StopFilter-troubles
Posted by Otis Gospodnetic <ot...@yahoo.com>.
--- P.Witte@CS.unimaas.nl wrote:
> Dear Lucene-users,
> has someone an answer to the following question:
> If I add a StopFilter to my Analyzer, the stopwords I gave him will
> be left
> out the query. So far, so good. But when my query is like this one:
> (field1
> : xxxxx) AND (field2 : stopword) AND (field 1 : yyyyy)
> the StopFilter will do its work, but the resulting query is a big
> mess :
> (field1 : xxxxx) AND ( ) AND (field 1 : yyyyy), and because of that
> the
> searching results ara no good. I hoped it would search for (field1 :
> xxxxx)
> AND (field 1 : yyyyy).
> I think the StopFilter does a poor job here. Is anyone familiar with
> this
> problem and has an answer for me?
> Puk Witte.
I tried something like this on one Lucene index:
description:travel AND description:a
The results were the same as this query:
description:travel
This seems right to me.
Otis
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>