Just a bit more info - i started to look at what's going on in the
analyzer by putting a bit of logging in:
module Ferret::Analysis
class StemmingAnalyzer
def token_stream(field, text)
RAILS_DEFAULT_LOGGER.debug "SEARCHING, field = #{field}, text =
#{text}"
StemFilter.new(StandardTokenizer.new(text))
end
end
end
And, i see these results for a single search on "flea fly":
SEARCHING, field = property_ancestor_names, text = flea
SEARCHING, field = description, text = flea
SEARCHING, field = name, text = flea
SEARCHING, field = keyword_string, text = flea
SEARCHING, field = property_ids_string, text = flea
SEARCHING, field = property_names, text = flea
SEARCHING, field = unaccented_name, text = flea
SEARCHING, field = property_titles, text = flea
SEARCHING, field = resource_id, text = flea
One call to token_stream for each of my indexed methods, but with each
only using the first word of the search! Now i'm even more confused...
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk