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

Reply via email to