I’m having a problem finding certain types of information using
multi_search. Basically, have a number of fields that are not
tokenized (ids, serial numbers, asset tags, etc). Seems like I can’t
search for these fields using multi_search.
class Device < ActiveRecord::Base
acts_as_ferret :fields=>{:serial_number => { :index => :untokenized
}}, :store_class_name=>true
end
Then later on:
Device.find_by_contents(“1234-5678-0987”) # => 1 Result. Correct.
Device.multi_search(“1234-5678-0987”, []) #=> 0 Results!
Incorrect!
If I search for other “normal” fields, everything seems to work
properly. It’s just these :untokenized fields that seem to be
problematic.
Any help appreciated.
Shad