What does the admin/analysis page show? And if you're really
putting the pipe symbol (|)  in you stopwords file, I have no clue what
Solr will make of it. The stopwords file format is usually just one
word per line.....

I'm assuming your name of "string" for the field type is just a placeholder
or you've replaced the example "string" fieldType, right?


Best
Erick

On Mon, Aug 22, 2011 at 6:24 AM, Lucas Miguez <lucas.mig...@gmail.com> wrote:
> 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