我用这个来创建索引与Zend Lucene的非常简单的公司指数: // store company primary key to identify it in the search results
$doc->addField(Zend_Search_Lucene_Field::Keyword('pk', $this->getId()));
// index company fields
iam试图在我的网站中实现Searchmachine。 Iam为此使用Zend_Search_Lucene。 该指数创建这样的: public function create($config, $create = true)
{
$this->_config = $config;
// create a new index
if ($create) {