How to call a Zend lucene search function?

Posted by stef on Stack Overflow See other posts from Stack Overflow or by stef
Published on 2009-12-04T11:30:35Z Indexed on 2010/06/06 18:02 UTC
Read the original article Hit count: 201

Filed under:
|
|
|

I inherited a Zend project devoid of comments and I didn't get to talk to the previous developer. Since I have no Zend experience I'm having some issues :)

I'd like to print out some variables inside an function that indexes items from the site using Zend_Search_Lucene because I think something is going wrong here.

From what I've read, ::create creates a new index and ::open updates it. So it's in this ::open function I'd like to print out some variables.

The name and params of the function are below. Does anyone have any idea how this function can be called so I can run some tests?

private function search($category,$string,$page = 1,$itemsByPage = 5)

EDIT: OR, is there a way I can nuke the existing index and force it to be rebuilt completely, for example by deleting the index files on the FS and then performing some searches?

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework