Affects Version/s: 1.2.1
Fix Version/s: None
I have the following:
When a Page record is updated I get this error:
If I only index fields from Page it works.
I tracked this down to the code in Doctrine_Search that deletes the existing indexed data before re-indexing a record (I'm not using batchUpdate). For reasons I don't understand the DELETE query is not executing correctly before re-indexing, and so any unchanged data is being added to the index twice, causing the error.
I managed to work around this by adding my own template and listener before Searchable, with a preSave event that deletes the index data:
Obviously that's an ugly hack, but it works.