You also need to stem-analyze the incoming query.

I had this same problem. :^>


Schnitz

On 12/6/06, Raymond O'connor <[EMAIL PROTECTED]> wrote:

Hi all,

I am trying to implement a search that will use the Stem Analyzer.  I
added the Stem Anaylzer from the examples shown in another post
http://ruby-forum.com/topic/80178#147014

module Ferret::Analysis
  class StemmingAnalyzer
    def token_stream(field, text)
      StemFilter.new(StandardTokenizer.new(text))
    end
  end
end

The problem with the Stem analyzer is that when I search for a term such
as 'engineering', it only matches whole words that fit the stem so the
only results I get back are documents where 'engin' is a whole word
(i.e. I don't get back documents with 'engineering', 'engineer', or
'engin*').  Am I using the Stem anaylzer correctly?  Is there a better
way to get the desired behavior?  Any help would be much appreciated!

Cheers!

--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to