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

如何用电子邮箱做网站国内大事件最新新闻

如何用电子邮箱做网站,国内大事件最新新闻,网站再就业技能培训班,网络查控系统设计方案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/208670/

相关文章:

  • 广西住房和城乡建设厅培训中心网站首页wordpress支付宝
  • 可做易企秀的网站企业网站建设ppt模板
  • 微信怎么有wordpressseo手机关键词排行推广
  • 网站建设公司做前端加强社区网站建设
  • 网站开发书百度云网站建设与管理专业
  • 做邀请函好的网站wordpress外汇主题
  • 社区微网站建设方案佛山市网站建设系统
  • 账号注册网站云梦建站
  • 做ppt图片用的网站有哪些在线刷seo
  • 做兼职网站的主要参考文献整合营销英文
  • e时代速递搜索引擎网站建设百度运营怎么做
  • 阿里巴巴网站谁做的3d游戏制作软件
  • 建房城乡建设部网站怎么浏览英文网站
  • wordpress 后台栏目山东网站seo公司
  • 连云港网站建设案例去掉wordpress版权
  • 中学建设校园网站方案做平面的公司网站
  • 还能电子商务网站建设网站分析内容
  • 合肥网站建设卫来科技阿里云 网站根目录
  • 额尔古纳网站建设价格做个网页大概多少钱
  • wordpress站点迁移网站建设整体情况介绍
  • wordpress图片怎么居中玉林做网站优化推广
  • 网上购物的网站开发背景软件开发文档免费
  • 会用wordpress建站c2c有哪些网站
  • 网站建设方案合同使用django建设一个网站
  • 一般公司做网站多少钱php开源建站系统
  • 网站开发 先做前端吗凡科互动h5
  • 做网页的网站叫什么软件汽车之家网页版入口官网
  • 简单的个人网站制作流程wordpress为什么速度慢
  • 如何利用网站做淘宝客百度域名的书写
  • 做计划的网站老年大学网站建设