Hmmm, I'd expect you to have an error in your log file if you haven't removed the default field type named "string". If you have removed it from your schema, this should work...
But I'd change the name anyway, it'll cause endless confusion. And don't forget to re-index *everything*, preferably after removing the data/index directory (the whole directory, not just the contents of index). Take a look at the admin/analysis page after you've made your changes, and click the "verbose" checkbox to see exactly what happens at each step of the analysis chain. That'll tell you whether you're on the right track. The definition you're using should do what you've indicated you want. Best Erick On Wed, Aug 24, 2011 at 3:43 AM, _snake_ <lucas.mig...@gmail.com> wrote: > 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. >