You could use a synonym filter to map "ran" to "run".

ran => run (and apply same filter at query and index time)

or

ran, run (only apply filter at index time, synonym filtering not needed at query time)

But you would have to manually add all such word forms.

-- Jack Krupansky

-----Original Message----- From: Alexander Cougarman
Sent: Tuesday, August 07, 2012 4:18 AM
To: solr-user@lucene.apache.org
Subject: Stemming questions

Dear friends,

A few questions on stemming support in Solr 3.6.1:
- Can you do non-English stemming?
- We're using solr.PorterStemFilterFactory on the "text_en" field type. We will index a ton of PDF, DOCX, etc. docs in multiple languages. Is this the best filter factory to use for stemming? - For words like "run", "runners", "running", "ran", we need all to be returned. Is there a factory that will return all those? When searching on "run", Porter returned "run", "running", "runners" but not "ran". Not sure if anything could pick that up. - Is it possible to turn off the stemming filter via code, so it could be a checkbox on a web page? We will be writing this in C#.

Thank you for your help :)

Sincerely,
Alex

Reply via email to