Zend Lucene Delete Document Issue

For programming and general questions on Zend Framework
Post Reply
Posts: 1
Joined: Fri Dec 28, 2012 12:55 pm

Zend Lucene Delete Document Issue

Post by pramodrs » Fri Dec 28, 2012 12:57 pm

I am trying to delete a document using zend lucene. The following is my code

$index = Zend_Search_Lucene::open('data/index');
foreach ($index->find('pk:' . $this->getId()) as $hit) {
When I run this and checked my index folder there is a new file created like this _f4t5_1.del

But when I do a search, the deleted document is available in the search and also checked the


This method also returns the same count before and after delete.

Any help is appreciated.

Post Reply