Thanks everybody for your help!!

I change the stopwords file, and I only use one word per line, without start
/ ending spaces, and without comments.
I change it to UTF-8.
I am using the TermsComponent to suggest words to the user (JQuery UI
Autocomplete). So, the stopwords are still showed here...
Do I have to change the name of the fieldtype "string"?
I think the problem is that TermsComponent doesn't use the stopwords file.
Is there another way to suggest words to the user?
Thanks!


The Solr Analysis shows the following when I search the word 'a' (that is an
stopword) in a field that have all the content.
Query Analyzer
a

The content of schema file is:
<fieldtype name="string"  class="solr.TextField" positionIncrementGap="100">
   <analyzer type="index">
                <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="spanish_stop2.txt" enablePositionIncrements="true" />
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="1"
catenateNumbers="1" catenateAll="0" splitOnCaseChange="0"/>
        <filter class="solr.LowerCaseFilterFactory"/>
                
   </analyzer>
   <analyzer type="query">
                <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.StopFilterFactory"
                ignoreCase="true"
                words="spanish_stop2.txt"
                enablePositionIncrements="true"
                />
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="0"
catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
   </fieldtype>

The solrconfig.xml file:

  <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
     <lst name="defaults">
      <bool name="terms">true</bool>
    </lst>     
    <arr name="components">
      <str>terms</str>
    </arr>
  </requestHandler>



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-using-stop-words-tp3274598p3280291.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to