添加 ‘—rotate ’参数

    1. #建立主索引
    2. /coreseek/bin/indexer vall --rotate -c /coreseek/etc/vall.conf
    3. /coreseek/bin/indexer cibnvip_index --rotate -c /coreseek/etc/vall.conf
    4. /coreseek/bin/indexer valltips --rotate -c /coreseek/etc/vall.conf
    #创建增量索引                         
    /coreseek/bin/indexer delta --rotate -c /coreseek/etc/vall.conf
    #合并索引
    #将delta合并到main中                               
    /coreseek/bin/indexer --merge vall delta --rotate -c /coreseek/etc/vall.conf
    #增量索引                                          
    /coreseek/bin/indexer more --rotate  -c /coreseek/etc/vall.conf
    #将more合并到cibnvip_index中                       
    /coreseek/bin/indexer --merge cibnvip_index more --rotate -c /coreseek/etc/vall.conf
    
    --rotate参数可以在不停止searchd的情况下索引,不然的话会有类似如下的提示:
    
    FATAL: failed to lock /usr/local/coreseek/var/data/hx_9enjoy_delta.spl: 
    Resource temporarily unavailable, will not index. Try --rotate option.
    ERROR: index 'delta' is already locked; lock: failed to 
    lock /usr/local/coreseek/var/data/cncn_article_delta.spl: 
    Resource temporarily unavailable