On Mon, Aug 24, 2009 at 8:58 PM, darniz<rnizamud...@edmunds.com> 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.

-Yonik
http://www.lucidimagination.com

Reply via email to