search for: teachingobject

Displaying 2 results from an estimated 2 matches for "teachingobject".

2009 Nov 12
0
Problem with has_many :through, :uniq => true with polymorph
...> :destroy has_many_polymorphs :taggables, :from => [:resources, :lessons], :through => :taggings, :dependent => :destroy The uniq option doesn''t seem to stop me from adding the same tag multiple times to a resource: >> resource = Resource.first => #<TeachingObject id: 59, name: "Clarinet bite point close-up" ...> >> tag = Tag.first => #<Tag id: 1, name: "recorder"> >> resource.tags => [#<Tag id: 1, name: "recorder">, #<Tag id: 610, name: "chunky chicken">, #<Tag id: 1, name: &q...
2009 Apr 09
4
Weird analyzer issue with the word ''fly''
...... }}) And this analyzer is defined in a module thus: module Ferret::Analysis class StemmingAnalyzer def token_stream(field, text) StemFilter.new(StandardTokenizer.new(text)) end end end Now, here''s a search without using the analyzer: >> TeachingObject.find_with_ferret("flea fly", :per_page => 2000).size => 14 And with the analyzer: >> TeachingObject.find_with_ferret("flea fly", :per_page => 2000, :analyzer => Ferret::Analysis::StemmingAnalyzer.new).size => 0 Now, for other searches, the analyzer seems...