This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

[solved] tjSolrDoctrineBehaviorPlugin doesn't delete

Questions relating to sfLucenePlugin, sfSearch etc

[solved] tjSolrDoctrineBehaviorPlugin doesn't delete

by Aerandir » Tue Nov 23, 2010 12:43 pm

Hi everyone !

I've installed tjSolrDoctrineBehaviorPlugin, to manage index with Solr. Everything went fine, when I add an article, Solr create an index ; when I update an article Solr updates his index.

BUT !

When I delete an article, the index isn't deleted ! So that's a huge problem ! I saw in Solr.php that there was a delete of the index in the preDelete, I write an echo and it is on the screen. So when I delete an article, it ran throught the preDelete but don't delete any index ! Do you know is happening ?

PS : Sorry for my mistakes in english, I'm actually french >_<
Aerandir
Junior Member
 
Posts: 5
Joined: Thu Nov 18, 2010 12:43 pm

Re: tjSolrDoctrineBehaviorPlugin doesn't delete

by Aerandir » Wed Nov 24, 2010 4:50 pm

I've solved my problem by using a virtual field (look at the tjSolrDoctrineBehaviorPlugin's readme) because the id of my article was XX and the delete action try to delete "Article_XX". So I create a virtual unique id field who was not XX but myclass_XX, and it works.
Aerandir
Junior Member
 
Posts: 5
Joined: Thu Nov 18, 2010 12:43 pm