I'm trying to setup on my I'm following the following my initial setup is working fine.
In development:
Ruby-1.9.2-P> note. Search {keyword 'patience'} .results.length = & gt; 3 I am trying to add stemming. I have updated the related part of my schema.xml file to:
& Lt; Filter class = "solr.StandardFilterFactory" /> & Lt; Filter class = "solr.LowerCaseFilterFactory" /> & Lt; Filter class = "solr.PorterStemFilterFactory" /> & Lt; / Analyzer & gt; & Lt; Analyzer Type = "Index" & gt; & Lt; Tokenizer class = "solr.StandardTokenizerFactory" /> & Lt; Filter class = "solr.StandardFilterFactory" /> & Lt; Filter class = "solr.LowerCaseFilterFactory" /> & Lt; Filter class = "solr.PorterStemFilterFactory" /> & Lt; / Analyzer & gt; & Lt; / FieldType & gt; Then I was thinking again: $ rake sunspot: reindex but in doing this Not all appear: Ruby-1.9.2-P> note. Search {keyword 'gri'} .results.length = & gt; 0 What am I doing wrong?
I have two thoughts here for you:
First of all, you mention this Did not do whether you are restarting Solr by changing your schema.xml So: Are you restarting the solar, so that your changes can take effect? :) Next, I am wondering if the term grit has also been removed under its code Porter Storing Algorithm. To be sure, you will need to read more about it but you can try some more explicit examples (e.g., write to write ).
Comments
Post a Comment