Giter Site home page Giter Site logo

elasticsearch-analysis-ik's Introduction

IK Analysis for Elasticsearch

扩展ik分词器 支持除远程热加载词库之外 可以从数据库里动态加载 目前支持MySQL

Versions

目前是6.5.3版本改造

配置使用

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
	<comment>IK Analyzer 扩展配置</comment>
	<!--用户可以在这里配置自己的扩展字典 -->
	<entry key="ext_dict">custom/mydict.dic;custom/single_word_low_freq.dic</entry>
	 <!--用户可以在这里配置自己的扩展停止词字典-->
	<entry key="ext_stopwords">custom/ext_stopword.dic</entry>
 	<!--用户可以在这里配置远程扩展字典 -->
	<entry key="remote_ext_dict">location</entry>
 	<!--用户可以在这里配置远程扩展停止词字典-->
	<entry key="remote_ext_stopwords">http://xxx.com/xxx.dic</entry>
    
    <!--mysql  扩展词典-->
    <!--jdbc url-->
	<entry key="mysql_ext_dict_url">jdbc:mysql://localhost:3306/ik</entry>
	<!--数据库用户名-->
	<entry key="mysql_ext_dict_username">root</entry>
	<!--数据库密码-->
	<entry key="mysql_ext_dict_password">123456</entry>
	<!--所在表-->
	<entry key="mysql_ext_dict_table">keyWord</entry>
	<!--词的列名 默认keyword-->
	<entry key="mysql_ext_dict_keywordField">keyword</entry>
	<!--创建时间列名 默认create_at-->
	<entry key="mysql_ext_dict_createAtField">create_at</entry>
	<!--更新时间列名 默认update_at-->
	<entry key="mysql_ext_dict_updateAtField">update_at</entry>

	<!--mysql  停用词-->
	<entry key="mysql_ext_stopwords_url"></entry>
	<entry key="mysql_ext_stopwords_username"></entry>
	<entry key="mysql_ext_stopwords_password"></entry>
	<entry key="mysql_ext_stopwords_table"></entry>
	<entry key="mysql_ext_stopwords_keywordField"></entry>
	<entry key="mysql_ext_stopwords_createAtField"></entry>
	<entry key="mysql_ext_stopwords_updateAtField"></entry>



</properties>

基础使用方法

https://github.com/zhuzhiqiang18/elasticsearch-analysis-ik/blob/master/README.md

elasticsearch-analysis-ik's People

Contributors

medcl avatar rickyhu avatar abookyun avatar shikui avatar ayman-abdelghany avatar zhuzhiqiang18 avatar arronli avatar piaolingxue avatar rockybean avatar tokikanno avatar figroc avatar aymandf avatar wyhw avatar 03131302 avatar cwhsu1984 avatar chuangbo avatar gnuhpc avatar robberphex avatar rueian avatar snow avatar zhang-yixin avatar fzxu avatar byronhe avatar leaxoy avatar mailsurfie avatar muliuyun avatar kepmov avatar starckgates avatar tangyu avatar wksw avatar

Watchers

James Cloos avatar

Forkers

hmgjdh521

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.