• This repository has been archived on 18/Jul/2018
  • Stars
    star
    2,687
  • Rank 16,992 (Top 0.4 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created over 12 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

elasticsearch中文发行版,针对中文集成了相关插件,方便新手学习测试.

什么是Elasticsearch-RTF? RTF是Ready To Fly的缩写,在航模里面,表示无需自己组装零件即可直接上手即飞的航空模型,Elasticsearch-RTF是针对中文的一个发行版,即使用最新稳定的elasticsearch版本,并且帮你下载测试好对应的插件,如中文分词插件等,目的是让你可以下载下来就可以直接的使用(虽然es已经很简单了,但是很多新手还是需要去花时间去找配置,中间的过程其实很痛苦),当然等你对这些都熟悉了之后,你完全可以自己去diy了,跟linux的众多发行版是一个意思。

当前版本 Elasticsearch 5.1.1

如何使用?

1.运行环境

a.JDK8+  
b.系统可用内存>2G 

2.下载

git clone git://github.com/medcl/elasticsearch-rtf.git -b master --depth 1

百度网盘:https://pan.baidu.com/s/1pJNkrUV

3.运行

Mac/Linux:

cd elasticsearch/bin
./elasticsearch
sudo -u ops ES_JAVA_OPTS="-Xms2024m -Xmx2024m"  ./bin/elasticsearch  -d

Windows:

cd elasticsearch/bin
elasticsearch.bat

以下是安装的官方插件,个别插件需要配置才能使用,可根据需要删除 plugins 目录无关的插件,重启 elasticsearch 生效。

bin/elasticsearch-plugin install discovery-multicast
bin/elasticsearch-plugin install analysis-icu
bin/elasticsearch-plugin install analysis-kuromoji
bin/elasticsearch-plugin install analysis-phonetic
bin/elasticsearch-plugin install analysis-smartcn
bin/elasticsearch-plugin install analysis-stempel
bin/elasticsearch-plugin install analysis-ukrainian
bin/elasticsearch-plugin install discovery-file
bin/elasticsearch-plugin install ingest-attachment
bin/elasticsearch-plugin install ingest-geoip
bin/elasticsearch-plugin install ingest-user-agent
bin/elasticsearch-plugin install mapper-attachments
bin/elasticsearch-plugin install mapper-size
bin/elasticsearch-plugin install mapper-murmur3
bin/elasticsearch-plugin install lang-javascript
bin/elasticsearch-plugin install lang-python
bin/elasticsearch-plugin install repository-hdfs
bin/elasticsearch-plugin install repository-s3
bin/elasticsearch-plugin install repository-azure
bin/elasticsearch-plugin install repository-gcs
bin/elasticsearch-plugin install store-smb
bin/elasticsearch-plugin install discovery-ec2
bin/elasticsearch-plugin install discovery-azure-classic
bin/elasticsearch-plugin install discovery-gce

安装 X-Pack

1.注册免费的 license, https://register.elastic.co

2.运行安装命令

 
	bin/elasticsearch-plugin install x-pack 

3.安装证书,参见:https://www.elastic.co/guide/en/x-pack/current/installing-license.html

	curl -XPUT -u elastic 'http://:/_xpack/license' -d @license.json

数据迁移工具

https://github.com/medcl/elasticsearch-migration

通过模板设置全局默认分词器

curl -XDELETE http://localhost:9200/_template/rtf


curl -XPUT http://localhost:9200/_template/rtf
-d'
{
  "template":   "*", 
  "settings": { "number_of_shards": 1 }, 
  "mappings": {
    "_default_": {
      "_all": { 
        "enabled": true
      },
      "dynamic_templates": [
        {
          "strings": { 
            "match_mapping_type": "string",
            "mapping": {
              "type": "text",
              "analyzer":"ik_max_word",
              "ignore_above": 256,
              "fields": {
                "keyword": {
                  "type":  "keyword"
                }
              }
            }
          }
        }
      ]
    }
  }
}
'

More Repositories

1

elasticsearch-analysis-mmseg

The Mmseg Analysis plugin integrates Lucene mmseg4j-analyzer:http://code.google.com/p/mmseg4j/ into elasticsearch, support customized dictionary.
Java
359
star
2

infini-gateway

Moved to: https://github.com/infinilabs/gateway
Go
326
star
3

book-elastic-search-in-action

Elastic 搜索开发实战
CSS
247
star
4

gopa-abandoned

GOPA, a spider written in Go.(NOTE: this project moved to https://github.com/infinitbyte/gopa )
Go
94
star
5

ElasticSearch.Net

a client written in .net, won‘t maintenance any more
C#
92
star
6

lua-resty-weedfs

weefs,lua,nginx and file post processing with ffmpeg and graphicsmagick
Lua
77
star
7

elasticsearch-analysis-string2int

string2integer analysis for elasticsearch,save your memory and reduce the size of your index,the size of the filedcache can be reduced from giga to mega,and also the query time can be reduced from minutes to millionseconds.
Java
62
star
8

elasticsearch-carrot2

a elasticsearch plugin integrated with carrot2,which clustering your search results into topics,
Java
47
star
9

elasticsearch-partialupdate

an elasticsearch plugin that allows to update a specify fileds of a document,avoid full reindex and reduce traffic costs
Java
40
star
10

weedfs

forked from:http://code.google.com/p/weed-fs/
Go
32
star
11

elasticsearch-river-email

An Email River Plugin for [Elasticsearch](http://www.elasticsearch.org/)
Java
26
star
12

elasticsearch-analysis-paoding

Paoding Analysis Plugin for ElasticSearch
Java
21
star
13

ansible

A Curated Ansible Toolkit for Elastic Stack
Ruby
18
star
14

book-elastic-search-in-action-resources

HTML
13
star
15

ElasticSearch-WebConsole

a webconsole to elasticsearch
JavaScript
13
star
16

pi-warning-light-for-elasticsearch

Add warning light and sound alarm to Elasticsearch, using Raspberry Pi and Alerting.
Python
11
star
17

salt-elasticsearch

deploy elasticsearch with saltstack
Scheme
8
star
18

ElasticMonitor

ElasticSearch Cluster Monitor on AIR
7
star
19

FlumeAgent

a flume agent,thrift+c#,multi collector supported
C#
7
star
20

elasticsearch-filter-redis

a customized search filter for elasticsearch,use external redis-store to do search result filtering,supposed to move some part of logic from index to outer redis.
Java
7
star
21

csv2sql

A data import tool written for the non-profit project: ifish(http://bit.ly/ifish-project)
Go
7
star
22

foo_now_playing

foobar插件,自动发送当前播放歌曲到新浪微博,foobar_plugin_auto_send_what_i_am_listening_to_t.sina.com
C
5
star
23

book-template

CSS
3
star
24

Lucene.Index.Walker

a tool to quick view the lucene's directory
C#
2
star
25

infini-framework-vendor

INFINI Framework Vendor Codes
Go
2
star
26

ReferenceAnalysts

this is a tool for analyzing dll's (c# .net) references and dependencies
C#
1
star
27

es-gateway-java-rest-client-test

Elasticsearch JAVA High Level RESTful Client with Elasticsearch Gateway with SSL enabled
Java
1
star