Hi,

I am trying to use spanish stop words, but the stop words are not working:

Part of the schema.xml file:

<fieldtype name="string"  class="solr.TextField"
positionIncrementGap="100" autoGeneratePhraseQueries="true">
   <analyzer type="index">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
                <filter class="solr.LowerCaseFilterFactory" />
                <filter class="solr.SnowballPorterFilterFactory" 
language="Spanish" />
                <filter class="solr.StopFilterFactory" words="spanish_stop.txt"
enablePositionIncrements="true" ignoreCase="true" />
   </analyzer>
   <analyzer type="query">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
                <filter class="solr.LowerCaseFilterFactory" />
                <filter class="solr.SnowballPorterFilterFactory" 
language="Spanish" />
                <filter class="solr.StopFilterFactory" words="spanish_stop.txt"
enablePositionIncrements="true"  ignoreCase="true" />
        </analyzer>
   </fieldtype>
___________________________________________________________________________

A piece of the stopwords file:

de             |  from, of
la             |  the, her
que            |  who, that
el             |  the
en             |  in
y              |  and
a              |  to
los            |  the, them
del            |  de + el
se             |  himself, from him etc
las            |  the, them
por            |  for, by, etc
un             |  a
para           |  for
con            |  with
no             |  no
una            |  a
su             |  his, her
al             |  a + el
  | es         from SER
lo             |  him


Any idea? Thanks!

Reply via email to