当前位置: 首页 > news >正文

保亭交通工程建设局网站电商网站建设方案

保亭交通工程建设局网站,电商网站建设方案,鸿蒙系统开发app入门系列,网络服务Elasticsearch介绍 Elasticsearch 是一个分布式搜索引擎,底层基于 Lucene 实现。Elasticsearch 屏蔽了 Lucene 的底层细节,提供了分布式特性,同时对外提供了 Restful API。Elasticsearch 以其易用性迅速赢得了许多用户,被用在网站…

Elasticsearch介绍

Elasticsearch 是一个分布式搜索引擎,底层基于 Lucene 实现。Elasticsearch 屏蔽了 Lucene 的底层细节,提供了分布式特性,同时对外提供了 Restful API。Elasticsearch 以其易用性迅速赢得了许多用户,被用在网站搜索、日志分析等诸多方面。
官网地址:https://www.elastic.co/cn/elasticsearch

Elasticsearch部署安装

具体选择哪个版本需要跟你的使用环境有关,并不是越新越好,比如这里我们公司开发环境用的是JDK8,Springboot版本是2.3.12.RELEASE,那么你可以在spring-boot-dependencies依赖中找到该代码<elasticsearch.version>7.6.2</elasticsearch.version>说明需要使用7.6.2版本,你可以可以在spring官网找到如下版本对照:
https://www.chengpei.top/upload/spring-es-version.png

部署包安装

可以官方网站下载安装包:https://www.elastic.co/cn/downloads/past-releases#elasticsearch,选择相对应的版本和平台下载即可。
下载下来的文件解压,需要修改config/elasticsearch.yml配置文件,这里先配置几个必须的

# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["localhost"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["localhost"]
#
# For more information, consult the discovery and cluster formation module documentation.

discovery.seed_hosts、cluster.initial_master_nodes与集群相关,我这里测试但节点部署就直接填了localhost,配置完成执行bin/elasticsearch -d即可启动,启动完成访问服务的9200端口返回如下说明启动完成
https://www.chengpei.top/upload/es-http.png

docker安装

docker run --name elasticsearch -p 9200:9200 -p 9300:9300  
-e "discovery.type=single-node" 
-e ES_JAVA_OPTS="-Xms1g -Xmx1g" 
-v /data/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml 
-v /data/elasticsearch/data:/usr/share/elasticsearch/data 
-v /data/elasticsearch/plugins:/usr/share/elasticsearch/plugins 
-d elasticsearch:7.6.2

中文分词插件安装

我们需要做中文分词搜索,就需要给ES安装中文分词查询,一般用到的分词器是这个IK分词器,github地址:https://github.com/infinilabs/analysis-ik,但是注意分词器的版本和elasticsearch的版本是严格对应的,不能随便选择分词器版本,比如我这里安装7.6.2版本的分词器,可以来到elasticsearch的bin目录下执行命令./elasticsearch-plugin install https://get.infini.cloud/elasticsearch/analysis-ik/7.6.2,可以安装分析器

http://www.yayakq.cn/news/55447/

相关文章:

  • 网站开发网页制作教程it运维需要学哪些知识
  • 网站建设资讯版块如何做用户运营长沙口碑最好网站建设公司排行榜
  • 国内wordpress著名网站wordpress 流量数据库
  • 广州建设网站首页河北建设信息网官网
  • ci框架建设网站案例上海网页设计制作培训
  • 嘉兴城乡建设网站好多商城app
  • 杭州网站推广方式网站在百度上搜不到了
  • 长沙网站技术专家《妻子》在线观看免费韩剧
  • 网站头图设计大理建设招标有限公司网站
  • 西安网站制作培训page to wordpress
  • 北京的招聘网站有哪些怎么做搜索功能网站
  • 保定网站优化公司电商运营怎么自学
  • wordpress英文站更新通知目录教用vs2013做网站的书
  • 广西中小型营销型网站建设公司wordpress没有首页
  • 外贸网站建设价格公司网站开发费用入什么科目
  • 建设银行网站为什么进不去平面设计培训什么
  • 响应式网站多少钱建设职业技术学院官网
  • 武威市市建设局网站建筑业管理织梦网站地图如何做
  • 搬瓦工 ss wordpressseo做的比较好的网站的几个特征
  • 后台给网站做关键字wordpress博客小工具标签
  • 网站内链 外链宁波广告公司网站建设
  • 什么是网站域名?两个域名同一个网站做优化
  • 好的公司网站建设网站后台维护系统
  • 南充做网站公司网站注销怎么做消
  • 制作公司网站要多少钱wordpress安装引导页
  • 兼职网站项目建设报告免费行情软件app网站下载大全安卓
  • 腾讯官方网站做书签wordpress logo更换
  • 企业网站建设合作合同百度官方app下载
  • iis asp网站天津建设工程信息网网站首页
  • 长沙做企业网站的公司wordpress字体编辑