【问题标题】:Sphinx index rotation timestampSphinx 索引旋转时间戳
【发布时间】:2013-07-18 14:55:36
【问题描述】:

有没有办法获取索引上次被 sphinx 旋转时的时间戳?最好使用 PHP。

因此,例如,我在晚上通过 cron 发出 indexer --all --rotate 命令。如果索引轮换成功(即狮身人面像重新加载了新索引),我想从该操作中获取时间戳。显然我还想从 sphinx 获取可用索引的列表,但这超出了这个问题的范围。

【问题讨论】:

    标签: php sphinx


    【解决方案1】:

    只需使用sql_query_post_index

    http://sphinxsearch.com/docs/current.html#conf-sql-query-post-index

    在某处记录它。

    查看该表,还会为您提供索引列表:)

    【讨论】:

    • 感谢您的好想法 :) 我们倾向于习惯各种 API 而忘记优雅的解决方案!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-10-07
    • 2012-05-23
    • 1970-01-01
    • 2017-09-04
    • 1970-01-01
    • 2014-12-17
    • 2016-11-22
    相关资源
    最近更新 更多