Code Monkey home page Code Monkey logo

es-example's Introduction

ansj 分词器

  1. /_cat/ansj: 执行分词
  2. /_cat/ansj/config: 显示全部配置
  3. /_ansj/flush/config: 刷新全部配置
  4. /_ansj/flush/dic: 更新全部词典。包括用户自定义词典,停用词典,同义词典,歧义词典,crf (例如:/_ansj/flush/dic?key=synonyms)

假设已经安装了es 和 kibana,现在安装x-pack

bin/elasticsearch-plugin install file:/usr/local/x-pack-5.4.0.zip
bin/kibana-plugin install file:/usr/local/x-pack-5.4.0.zip

x-pack 安全,客户端连接es

####test 用户只有 test_* 开头的索引权限(在kibana 中设置用户账号和权限)

Settings.builder()
        .put("cluster.name", clusterName)
        .put("xpack.security.transport.ssl.enabled", false)
        .put("xpack.security.user", "test:test123456")
        .put("client.transport.sniff", true)
        .put("client.transport.ignore_cluster_name", clientIgnoreClusterName)
        .put("client.transport.ping_timeout", clientPingTimeout)
        .put("client.transport.nodes_sampler_interval", clientNodesSamplerInterval)
        .build()

es-example's People

Contributors

271913061 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.