Elasticsearch 安裝IK分詞器外掛
阿新 • • 發佈:2018-12-14
IK分詞安裝
#切換到elasticsearch安裝目錄bin目錄下
./elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.5.2/elasticsearch-analysis-ik-6.5.2.zip
搜尋
{ "bool" : { "must" : [ { "match" : { "isDelete" : { "query" : 0, "operator" : "OR", "prefix_length" : 0, "max_expansions" : 50, "fuzzy_transpositions" : true, "lenient" : false, "zero_terms_query" : "NONE", "boost" : 1.0 } } }, { "match" : { "labId" : { "query" : 5, "operator" : "OR", "prefix_length" : 0, "max_expansions" : 50, "fuzzy_transpositions" : true, "lenient" : false, "zero_terms_query" : "NONE", "boost" : 1.0 } } }, { "bool" : { "should" : [ { "match_phrase" : { "kitName" : { "query" : "布理嵐", "analyzer" : "ik_smart", "slop" : 0, "boost" : 1.0 } } }, { "fuzzy" : { "itemNo" : { "value" : "布理嵐", "fuzziness" : "AUTO", "prefix_length" : 0, "max_expansions" : 50, "transpositions" : false, "boost" : 1.0 } } }, { "match_phrase" : { "alias" : { "query" : "布理嵐", "slop" : 0, "boost" : 1.0 } } } ], "disable_coord" : false, "adjust_pure_negative" : true, "boost" : 1.0 } } ], "disable_coord" : false, "adjust_pure_negative" : true, "boost" : 1.0 } }