elasticsearch 動態(tài)更新同義詞熱更新

動態(tài)更新熱更新同義詞此文有講http://www.cnblogs.com/kaynet/p/6185859.html
基本配置:

index:
  analysis:
    filter:
      my_types:
        type: keep_types
        types: ["SYNONYM","CN_WORD","LETTER","ENGLISH","ARABIC","COUNT"]
      my_synonym:
        type: synonym
        synonyms_path: synonym.txt
    tokenizer:
      comma:
        type: pattern
        pattern: ","
      sem:
        type: pattern
        pattern: ";"
    analyzer:
      ik_max_word:
        type: ik
        use_smart: false
      ik_smart:
        type: ik
        use_smart: true
      ik_types:
        type: custom
        tokenizer: ik
        filter: [my_types]
      ik_syno:
        type: custom
        tokenizer: ik
        filter: [my_synonym]
      ik_syno_types:
        type: custom
        tokenizer: ik
        filter: [my_synonym,my_types]
      comma:
        type: custom
        tokenizer: comma
      sem:
        type: custom
        tokenizer: sem

cluster.name: my_search

node.name: host1
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: [ "host2", "host3"]
discovery.zen.ping.multicast.enabled: false
threadpool.bulk.type: fixed
threadpool.bulk.size: 500
threadpool.bulk.queue_size: 2000
index.refresh_interval: 30s
index.translog.flush_threshold_ops: 50000
indices.fielddata.cache.size: 15%
indices.fielddata.cache.expire: 6h
indices.cache.filter.size: 15%
indices.cache.filter.expire: 6h
indices.memory.index_buffer_size: 30%
indices.memory.min_shard_index_buffer_size: 12mb
indices.memory.min_index_buffer_size: 96mb
threadpool.search.type: fixed
threadpool.search.size: 20
threadpool.search.queue_size: 100
threadpool.index.type: fixed
threadpool.index.size: 20
threadpool.index.queue_size: 100
bootstrap.mlockall: true
script.engine.groovy.inline.search: on
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容

  • Android 自定義View的各種姿勢1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 172,813評論 25 708
  • 首先您需要去jQuery的官網(wǎng)去下載jQuery文檔,然后通過javescript的src鏈接進(jìn)去即可。恩,然后我...
    吹蒲公英的貓閱讀 297評論 0 1
  • 一只黑白相間的貓咪寶寶,窩在貓咪媽媽的身邊,看著變幻的火燒云,:“媽媽,今晚的天空真美啊,外面的世界是不是也這么美...
    誰不曾愛上自由閱讀 514評論 6 6
  • 我們準(zhǔn)備著深深地領(lǐng)受那些意想不到的奇跡在漫長的歲月里忽然有彗星的出現(xiàn),狂風(fēng)乍起。
    時光獨白閱讀 244評論 0 0
  • 兄弟有二人, 無言護(hù)足行。 臟亂全不怕, 只留足清白。
    不會唱歌的蜻蜓閱讀 175評論 1 1