coreseek增量索引,建立索引後查不出結果

來源:互聯網
上載者:User
search coreseek index

#增量索引source main{    type                    = mysql    sql_host                = 127.0.0.1    sql_user                = root    sql_pass                = 123456    sql_db                  = reports    sql_port                = 3306    sql_query_pre           = SET NAMES utf8    sql_query_pre    = replace into sph_counter select 1,max(id) from search    sql_query_range    = select 1,max(id) from search    sql_range_step          = 1000    sql_query               = SELECT id,year_id,abstract,keywords,comments,create_time FROM search where id>=$start and id <=$end and id <=(select max_doc_id from sph_counter where counter_id=1)    sql_attr_timestamp      = create_time    sql_attr_uint           = comments    sql_attr_uint           = year_id    sql_query_info_pre      = SET NAMES utf8 }source delta : main{    sql_query_pre           = SET NAMES utf8    sql_query    = SELECT id,year_id,abstract,keywords,comments,create_time FROM search where id>=$start and id <=$end and id <=(select max_doc_id from sph_counter where counter_id=1)    sql_query_post_index    = replace into sph_counter select 1,max(id) from search}#index定義index main{    source              = main                path                = d:/www/ceshi/coreseek/var/data/main    docinfo             = extern    mlock               = 0    morphology          = none    min_word_len        = 1    html_strip          = 0    charset_dictpath    =  d:/www/ceshi/coreseek/etc/    charset_type        = zh_cn.utf-8}index delta : main{    source= delta    path                = d:/www/ceshi/coreseek/var/data/main   }#全域index定義indexer{    mem_limit            = 512M}#searchd服務定義searchd{    listen= 127.0.0.1:9312    read_timeout= 5    max_children= 30    max_matches= 5000    seamless_rotate= 0    preopen_indexes= 0    unlink_old= 1    pid_file= d:/www/ceshi/coreseek/var/log/search_main.pid    log= d:/www/ceshi/coreseek/var/log/search_main.log    query_log= d:/www/ceshi/coreseek/var/log/search_query.log    binlog_path=          }

當我建立索引執行命令coreseek/bin/indexer -c etc/search.conf --all後索引建立成功包括主索引和增量索引,啟動服務,查詢不出結果,添加記錄,執行更新增量索引,在查詢可以查詢到新增的記錄,怎麼回事,求協助~~~~~~~


回複討論(解決方案)

和這個人的一樣http://bbs.csdn.net/topics/360094828,他解決了沒有貼出方法

和這個人的一樣http://bbs.csdn.net/topics/360094828,他解決了沒有貼出方法

====================================================================
問題在於你的主索引和增量索引的產生地址是一樣的.


*****
把增量索引的path = d:/www/ceshi/coreseek/var/data/main改成別的名字就可以了
=====================================================================
#index定義
index main
{
source = main
path = d:/www/ceshi/coreseek/var/data/main
docinfo = extern
mlock = 0
morphology = none
min_word_len = 1
html_strip = 0

charset_dictpath = d:/www/ceshi/coreseek/etc/
charset_type = zh_cn.utf-8
}

index delta : main
{
source = delta
path = d:/www/ceshi/coreseek/var/data/main

}

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.