integrating zend search lucene

Login or register to post comments
3 replies [Last post]
Offline
Joined: 07/20/2009

Hello all,
gr8 work and contribution.
once again i need you peoples help....
I m integrating zend_seach_lucene part in my project called jobspert.com ...
I have successfully build the index with the following command...
SearchManager::BuildResumeIndex();
App::$ResumeIndex->commit();
it builds the index search is also working on index data...
BUT
i m displaying my result in data grid...it renders the datagrid but pagination is not working... when i click next(page)it gives me an error Like
"Argument 1 passed to Zend_Search_Lucene_LockManager::releaseReadLock() must be an instance of Zend_Search_Lucene_Storage_Directory, instance of __PHP_Incomplete_Class given, called in /home/jobspert/public_html/Zend/Search/Lucene.php on line 572 and defined"

You people can check this live at url below...
http://jobspert.com/SearchResultResume_1.php?keywords=hr
when the page loads it displays the data grid click next in paginator to see the error...
i have already spent two valuable day on it....
but no result....
might be it is the problem of qcubed or zend you people must be knowing it ....
please help me out its a humble request....

Offline
Joined: 03/31/2008

Ok, looking at the code from the error, it looks like you're calling Zend_Search_Lucene->__destruct() in your bind function, but that PHP isn't familiar with what class Zend_Search_Lucene is.

Did you restore this variable from the session, or otherwise deserialize it? The __PHP_Incomplete_Class class is generally only used for unserialized classes whose class definitions were not loaded prior to the unserialization.

You may want to ensure you include the PHP file that defines the proper class at the top of your PHP script, so that it always knows how that class is defined.

Offline
Joined: 07/20/2009

Thanks VexedPanda
You people are always help full....helping me every time....
it is resolved now...

Thanks once again....
Why you people always understand me! :)

Offline
Joined: 03/31/2008

Any time. :)