garaio/xapian_db — Issue #28: doc is not removed from db on model.destroy
Author: jcm
Created: 2012-03-07 23:12:43+00:00
State: open

Hi,

I don't know how to debug this : a destroyed model seems to persist in xapian db.
Destroy is effective in db : DELETE FROM models WHERE id=123;
After deletion, a search in xapian finds model id 123, and of course leads to Error, coulldn't find model with id=123.
Using rails 3.1, ActiveRecord, behaviour seen in development mode.
Thks

PS: in Readme, seems that
blueprint.base_query Person.includes(:addresses)
should be corrected into
blueprint.base_query { |c| c.includes(:addresses) }
if I undestood correctly the warning.