2011-05-29 09:49
浏览 89

Zend Lucene的索引文件在哪里?

the first time I indexed my data this way

$index = new Zend_Search_Lucene('/tmp/search_index', true);

This created a tmp/search_index folder in the public folder of my project. After I noticed there is something wrong with the index I just deleted all file in the search_index folder.

After trying to reindex the data I realized that the search_index folder is empty. However the search gives still results. Where is the index data stored now? It's not in the public folder...

图片转代码服务由CSDN问答提供 功能建议


  $  index = new Zend_Search_Lucene('/ tmp / search_index',true); 

这在我的项目的公共文件夹中创建了一个tmp / search_index文件夹。 我注意到索引有问题之后我刚刚删除了search_index文件夹中的所有文件。

尝试重新索引数据后,我发现search_index文件夹为空。 然而,搜索仍然给出了结果。 现在存储的索引数据在哪里? 它不在公共文件夹中......

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongxun6458 2011-05-30 04:41

    /tmp/search_index refers to the system root /tmp folder. Use some other path relative to your app, like tmp/search_index.

    点赞 打赏 评论

相关推荐 更多相似问题