Hello list,

I have a little weird error when deleting documents from the index.

I'm using the following code.

ferret_index = Ferret::Index::Index.new(:path => FERRET_INDEX_PATH)
query = Ferret::Search::TermQuery.new(:fk_file_id, "#{_fk_file_id}")
ferret_index.search_each(query) do | id |
        ferret_index.delete(id)
end

And I get the following error
Cannot delete for id of type Array


As I see it the only way this could happened is if search_each  
returns an Array of ID's but it couldn't right?

I'm using version 0.11.3.

Regards,
Henrik



_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to