I’m running from the trunk, and hitting road blocks no matter which way
I
attempt
to search across multiple indexes.
I tried a MultiSearcher, but I can’t pass a string for the search query
ms.search “iraq”
TypeError: wrong argument type String (expected Data)
So I tried creating a QueryParser to pass, but I can’t get the fields
from
the reader
r.get_field_names
NoMethodError: undefined method `get_field_names’ for
#Ferret::Index::IndexReader:0x406059dc
and even if I could, I cant pass any fields to the QueryParser
qp.fields = [“title”]
NoMethodError: undefined method `fields=’ for
#Ferret::QueryParser:0x407db070
So I tried using the MultiReader, like acts_as_ferret does, but it won’t
take any arguments
@reader = Index::MultiReader.new(sub_readers)
ArgumentError: wrong number of arguments (1 for 0)
Is everything I’m trying to do unimplemented in the c version, or am I
just
overlooking something obvious?
thanks,
joshua