duanping1920
2012-06-07 06:51
浏览 33
已采纳

何时在使用zend_search_lucene时调用优化函数?

I am using zend_search_lucene for indexing documents and I am in dilemma on calling optimize function.

Please let me know if optimize function is to be called after indexing or while searching.

Thanks

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

我使用zend_search_lucene索引文档,我在调用优化函数时陷入两难境地。 \ n

如果要在索引或搜索时调用优化函数,请告诉我。

谢谢

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

1条回答 默认 最新

  • duanfang2708 2012-06-07 07:44
    已采纳

    You need not call it that often. Depending on how fast your index changes, you can call it every few hours or days. I usually have a once-a-day cronjob that does index optimizing.

    已采纳该答案
    打赏 评论

相关推荐 更多相似问题