lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: solr.StopFilterFactory not filtering words
Date Tue, 25 Aug 2009 01:06:51 GMT
On Mon, Aug 24, 2009 at 8:58 PM, darniz<> wrote:
> HI
> i dont understand whats wrong here.
> i am trying to implement solr.StopFilterFactory
> here is my field type definition
>    <fieldtype name="teststop" class="solr.TextField">
>        <analyzer type="index">
>            <tokenizer class="solr.LowerCaseTokenizerFactory"/>
>                <filter class="solr.StopFilterFactory" words="stopwords.txt"
> ignoreCase="true"/>
>        </analyzer>
>    </fieldtype>
> and i have field which is
>   <field name="onlynoun" type="teststop" indexed="true" stored="true"
> required="false"/>
> when i try to insert a doc like
> <field name="onlynoun">an elphant is an animal</field>
> it does not remove an and is from the phrase.

How can you tell?
The stored field value you get back will always be what you put in.
Analysis only affects what is indexed.
Try searching for "the animal" and it will probably match your
document since "the" will be removed as a stopword.


View raw message