如何在Sphinx3中将delta合并为main?

时间:2019-02-25 07:11:55

标签: sphinx

我在Windows上使用Sphinx3.x,有两个索引maindelta 当我运行indexer.exe --merge main delta --merge-klists --rotate时 它始终提示ERROR: malformed or unknown option near '--merge-klists'.

source src1delta : src1 {
    sql_query = \
        SELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \
        FROM documents WHERE id in (select id FROM sphinx where tb='doc' AND type=1 )

    sql_query_killlist = SELECT id FROM sphinx WHERE tb='doc' AND type=0
}

index main
{
    source          = src1
    path            = d:/sphinx3/data/main
}

index delta {
    source = src1delta
    path = d:/sphinx3/data/delta
    kbatch = main, delta
}

0 个答案:

没有答案