What steps will reproduce the problem?
1. Create a record that will be indexed with the behaviour.
2. Delete the record.
3. The record is deleted, but the record's indexed data is not.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Seen on CakePHP version 1.2
Please provide any additional information below.
Adding the following method to search_index.php solves the problem:
function afterDelete(&$model) {
$conditions = array('model'=>$model->alias,
'association_key'=>$model->id);
$this->SearchIndex->deleteAll($conditions);
}
Original issue reported on code.google.com by mora...@gmail.com on 1 Jun 2009 at 1:58
Original issue reported on code.google.com by
mora...@gmail.com
on 1 Jun 2009 at 1:58