lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Belenki <v...@belenki.name>
Subject Re: are stopwords indexed?
Date Mon, 16 Jul 2012 10:29:13 GMT
Hi Giovanni,

you have entered the stopwords into stopword.txt file, right? But in the
definition of the field type you are referencing stopwords_FR.txt..

best regards,

Michael
On Mon, 16 Jul 2012 05:38:04 +0200, Giovanni Gherdovich
<g.gherdovich@gmail.com> wrote:
> Hi all,
> 
> are stopwords from the stopwords.txt config file
> supposed to be indexed?
> 
> I would say no, but this is the situation I am
> observing on my Solr instance:
> 
> * I have a bunch of stopwords in stopwords.txt
> * my fields are of fieldType "text" from the example schema.xml,
>   i.e. I have
> 
> -- -- >8 -- -- >8 -- -- >8 -- -- >8
>    <fieldType name="text" class="solr.TextField"
>    positionIncrementGap="100">
>       <analyzer type="index">
>         [...]
>         <filter class="solr.StopFilterFactory"
>                 ignoreCase="true"
>                 words="stopwords_FR.txt"
>                 enablePositionIncrements="true"
>                 />
>         [...]
>       </analyzer>
>       <analyzer type="query">
>          [...]
>          <filter class="solr.StopFilterFactory"
>                 ignoreCase="true"
>                 words="stopwords_FR.txt"
>                 enablePositionIncrements="true"
>                 />
>       </analyzer>
>    </fieldType>
> -- -- >8 -- -- >8 -- -- >8 -- -- >8
> 
> * searching for a stopwords thru solr gives always zero results
> * inspecting the index with LuCLI
> http://manpages.ubuntu.com/manpages/natty/man1/lucli.1.html
>   show that all stopwords are in my index. Note that I query
>   LuCLI specifying the field, i.e. with "myFieldName:and"
>   and not just with the stopword "and".
> 
> Is this normal?
> 
> Are stopwords indexed?
> 
> Cheers,
> Giovanni

Mime
View raw message