Hi, i'm playing with ferret and some records in the db. This is what i'm doing: >> Model.find_with_ferret('+title:* +countries:IT') => 3 records (right) >> Model.find_with_ferret('+title:* +countries:(IT OR IT)') => 3 records (right) >> Model.find_with_ferret('+title:* +countries:(IT AND IT)') => 3 records (right) >> Model.find_with_ferret('+title:* +countries:(US OR IT)') => 0 records (damn wrong) Why this? I mean, what's wrong on the OR condition? I used it in a very old version and worked, does it changed in the meanwhile? Now i'm using the last ferret and acts_as_ferret. I almost forgot, another not so nice thing is this: >> Model.find_with_ferret('+countries:IT') => 0 records (damn wrong) Why? :( My acts_as_ferret config is: acts_as_ferret(:fields => {:title => {}, :countries => {}, :created_at_int => {:index => :untokenized_omit_norms, :term_vector => :no}}, :analyzer => Ferret::Analysis::StandardAnalyzer.new([])) Thanks
on 2008-12-29 00:35
on 2008-12-29 15:50
Solved, i was using the old way for the stop words. The new one is
:ferret => {:analyzer => Ferret::Analysis::StandardAnalyzer.new([])}
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.