Installation of Elasticsearch
- Http://www.elastics earch.org/Download the latest version of Elastisearch.
- unzip the download file.
- CD to ${esroot}/bin/, perform elasticsearch boot.
- Close es with Curl-xpost localhost:9200/_shutdown.
Elasticsearch Basic configuration (this part of the configuration can be ignored, take the default value)
- Edit File ${esroot}/conf/elasticsearcy.yml
- Cluster.name: The cluster name, ES can be self-discovery, with the same cluster name ES will constitute the cluster.
- Node.name: The name of the node, the name of the current node. Only.
- Node.master: Whether to allow the current node to be master.
- Node.data: Whether the current node is allowed to store data.
- Index.number_of_shards: The default number of Shard for an index.
- Index.number_of_replicas: The default number of replicas for an index.
- path.data: Data storage.
- path.log: Log storage.
- Bootstrap.mlockall: Whether to use only memory (swap is not used).
- network.bind_host: Sets the IP address of the binding to access ES.
- Network.publish_host: The address that communicates with other node for data transfer between cluster.
Plug-in installation (head, Bigdesk, Ik-analyzer)Head, a H5 data viewing client:
- CD ${esroot}/bin/.
- execution./plugin-install mobz/elasticsearch-head
Bigdesk, Status View client:
- ./plugin-install lukas-vlcek/bigdesk/<bigdesk_version>
Ik-analyzer, Chinese word breaker:
- git clone https://github.com/medcl/ Elasticsearch-analysis-ik.git
- mvn clean Install (if MAVEN is configured).
- Elasticsearch-analysis-ik-xxx.jar copied to ${esroot}/plugins/ik/.
- copy Elasticsearch-analysis-ik (git repository) in the Config directory under the IK content to {esroot}/config.
- configuration ${esroot}/conf/ ELASTICSEARCH.YML, join at the bottom:
################################## Analyzer ############################## #index: Analysis : Analyzer: ik: alias: [Ik_analyzer] type:org.elasticsearch.index.analysis.IkAnalyzerProvider Ik_max_word: Type:ik use_smart:false ik_smart: type:ik use_smart:true
This completes. Test:
head:http://localhost:9200/_plugin/head/
bigdesk:http://localhost:9200/_plugin/bigdesk/
Ik:curl ' Localhost/idx/_analyze?analyzer=ik_smart '-d ' Chinese and China '
Elasticsearch Installing and configuring Head, Bigdesk, Ikanalyzer