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

做电影网站有什么好处刷seo排名

做电影网站有什么好处,刷seo排名,兰州网站制作,网站聊天系统怎么做Elasticsearch 是一个开源的、基于 Lucene 的分布式搜索和分析引擎,设计用于云计算环境中,能够实现实时的、可扩展的搜索、分析和探索全文和结构化数据。它具有高度的可扩展性,可以在短时间内搜索和分析大量数据。 Elasticsearch 不仅仅是一个…

Elasticsearch 是一个开源的、基于 Lucene 的分布式搜索和分析引擎,设计用于云计算环境中,能够实现实时的、可扩展的搜索、分析和探索全文和结构化数据。它具有高度的可扩展性,可以在短时间内搜索和分析大量数据。

Elasticsearch 不仅仅是一个全文搜索引擎,它还提供了分布式的多用户能力,实时的分析,以及对复杂搜索语句的处理能力,使其在众多场景下,如企业搜索,日志和事件数据分析等,都有广泛的应用。

本文将向你详细介绍如何正确地安装和配置 Elasticsearch,以及如何使用 Postman 工具来访问 Elasticsearch 的 API 接口。


文章目录

        • 1、Elasticsearch安装步骤
          • 1.1、下载
          • 1.2、解压
          • 1.3、启动
          • 1.4、验证
          • 1.5、注意
        • 2、Postman交互
          • 2.1、检查Elasticsearch服务状态
          • 2.2、创建一个新的索引
          • 2.3、获取指定索引的信息
          • 2.4、添加文档
          • 2.5、查询指定索引中的所有文档


1、Elasticsearch安装步骤
1.1、下载

官网下载地址:https://www.elastic.co/cn/downloads/elasticsearch

选择对应配置与版本下载:

image-20231001145824044

1.2、解压

下载压缩包后解压

1.3、启动

其实不存在什么安装不安装,解压完之后 ES 就能直接用了,我们打开文件包,再打开 bin/ 目录,然后打开这个叫 elasticsearch 的文件,即可启动 ElasticSearch::

image-20231001150111456

打开之后等一等:

image-20231001144802593

1.4、验证

Elasticsearch 默认使用端口为 9200,我们打开浏览器,输入域名:

http://localhost:9200/

可以看到:

image-20231001145518914

至此,恭喜你,ElasticSearch 安装成功了。

1.5、注意

如果报错:

received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200

原因是 Elasticsearch 开启了安全认证,虽然 started 成功,但访问 http://localhost:9200/ 失败。

解决方案:

找到 config/ 目录下面的 elasticsearch.yml 配置文件,把安全认证开关从原先的 true 都改成 false,实现免密登录访问即可,修改这两处都为 false 后:

image-20231001150500333


2、Postman交互

Elasticsearch 可以与 Postman 交互。Elasticsearch 提供了 RESTful API,可以通过 HTTP 请求进行交互,而 Postman 是一个非常流行的 API 测试工具,可以用来发送 HTTP 请求,因此可以用来与 Elasticsearch 进行交互。

2.1、检查Elasticsearch服务状态
方法:GET
URL:http://localhost:9200/

这个 API 用于检查 Elasticsearch 服务的状态,它没有入参。

image-20231001154011320

出参 JSON 对象包含了以下信息:

  • name:节点名称;
  • cluster_name:集群名称;
  • cluster_uuid:集群的唯一标识符;
  • version:包含了关于 Elasticsearch 版本的一些信息,如版本号、构建类型、构建日期等;
  • tagline:Elasticsearch 的标语

通过这个 API,你可以快速检查 Elasticsearch 服务是否正常运行,以及获取服务的一些基本信息。

2.2、创建一个新的索引
方法:PUT
URL:http://localhost:9200/my_index

这个 API 用于创建一个名为 my_index 的新索引

image-20231001160807327

当你发送这个 PUT 请求后,如果索引创建成功,Elasticsearch 会返回一个 JSON 对象,包含了一些关于操作的信息。

这个 JSON 对象包含了以下信息:

  • acknowledged:如果为 true,表示索引创建请求已经被成功接收。
  • shards_acknowledged:如果为 true,表示索引创建操作已经在所有分片上成功完成。
  • index:创建的索引名称。
2.3、获取指定索引的信息
方法:GET
URL:`http://localhost:9200/my_index`

这个 API 用于获取名为 my_index 的索引的信息。

image-20231001161112051

当你发送这个 GET 请求后,如果索引存在,Elasticsearch 会返回一个 JSON 对象,包含了索引的一些信息。

这个 JSON 对象包含了以下信息:

  • my_index:索引的名称。
  • aliases:索引的别名;
  • mappings:索引的映射信息,包括字段名称、字段类型等;
  • settings:索引的设置信息,包括创建日期、分片数量、副本数量、UUID、版本等。

通过这个 API,你可以获取 Elasticsearch 索引的详细信息。

2.4、添加文档
方法:POST
URL:`http://localhost:9200/my_index/_doc`

这个 API 用于在 my_index 索引中添加一个新的文档。

image-20231001163113736

在这个例子中,我们添加了一个新的文档,包含两个字段:nameemail

当你发送这个 POST 请求后,如果添加成功,Elasticsearch 会返回一个 JSON 对象,包含了一些关于操作的信息。

这个 JSON 对象包含了以下信息:

  • _index:文档所在的索引名称。
  • _type:文档的类型(如果有的话)。
  • _id:新添加的文档的 ID。
  • _version:文档的版本号,新添加的文档的版本号为 1。
  • result:操作的结果,这里是 “created”,表示文档已被创建。
  • _shards:操作涉及的分片数量,包括总数、成功数和失败数。
  • _seq_no:操作的序列号。
  • _primary_term:操作的主要术语。

通过这个 API,你可以在 Elasticsearch 索引中添加新的文档。

2.5、查询指定索引中的所有文档
方法:GET
URL:http://localhost:9200/my_index/_search

这个 API 用于查询 my_index 索引中的所有文档

image-20231001163500496

当你发送这个 GET 请求后,Elasticsearch 会返回一个 JSON 对象,包含了查询结果。

这个 JSON 对象包含了以下信息:

  • took:查询操作花费的时间(毫秒)。
  • timed_out:如果为 true,表示查询操作超时。
  • _shards:查询操作涉及的分片数量,包括总数、成功数、跳过数和失败数。
  • hits:查询结果。
  • total:匹配的文档总数。
  • max_score:匹配文档的最大得分。
  • hits:一个数组,包含了匹配的文档。每个文档包括索引名称、文档类型、文档 ID、得分和源文档内容。

通过这个 API,你可以查询 Elasticsearch 索引中的所有文档。


文章转载自:
http://dinncopowerlifter.bkqw.cn
http://dinncoimpel.bkqw.cn
http://dinncostunted.bkqw.cn
http://dinncooverdone.bkqw.cn
http://dinncojurancon.bkqw.cn
http://dinncomm.bkqw.cn
http://dinncoclassicist.bkqw.cn
http://dinncounlearnt.bkqw.cn
http://dinnconursling.bkqw.cn
http://dinncocatching.bkqw.cn
http://dinncoquilled.bkqw.cn
http://dinncopyrotoxin.bkqw.cn
http://dinncopenitentiary.bkqw.cn
http://dinncoinviolability.bkqw.cn
http://dinnconutgall.bkqw.cn
http://dinncothumbkins.bkqw.cn
http://dinncoirradiation.bkqw.cn
http://dinncodisparagement.bkqw.cn
http://dinncodissolving.bkqw.cn
http://dinncomonosomic.bkqw.cn
http://dinncobean.bkqw.cn
http://dinncorechannel.bkqw.cn
http://dinncolucrative.bkqw.cn
http://dinncominitrack.bkqw.cn
http://dinncoexpertize.bkqw.cn
http://dinncouvulae.bkqw.cn
http://dinncoteamster.bkqw.cn
http://dinncophytosanitary.bkqw.cn
http://dinncohylology.bkqw.cn
http://dinncoliturgiology.bkqw.cn
http://dinncoelectrician.bkqw.cn
http://dinncopeck.bkqw.cn
http://dinncokintal.bkqw.cn
http://dinncofatsoluble.bkqw.cn
http://dinncounwhipped.bkqw.cn
http://dinncoautoharp.bkqw.cn
http://dinncocitation.bkqw.cn
http://dinncolipoma.bkqw.cn
http://dinncosunna.bkqw.cn
http://dinncoshortness.bkqw.cn
http://dinncopuffery.bkqw.cn
http://dinncohypethral.bkqw.cn
http://dinncoblent.bkqw.cn
http://dinncocongruously.bkqw.cn
http://dinncobalsamic.bkqw.cn
http://dinncorassle.bkqw.cn
http://dinncoturreted.bkqw.cn
http://dinncociphering.bkqw.cn
http://dinncoforestland.bkqw.cn
http://dinncomicellization.bkqw.cn
http://dinncohyalite.bkqw.cn
http://dinncopostclitic.bkqw.cn
http://dinnconutburger.bkqw.cn
http://dinncoentasia.bkqw.cn
http://dinncojehovah.bkqw.cn
http://dinncodichromatic.bkqw.cn
http://dinncoeurydice.bkqw.cn
http://dinncotacticity.bkqw.cn
http://dinncoisogon.bkqw.cn
http://dinncofibrinolysis.bkqw.cn
http://dinncofastness.bkqw.cn
http://dinncoframbesia.bkqw.cn
http://dinncoatlanta.bkqw.cn
http://dinncodished.bkqw.cn
http://dinncomarshy.bkqw.cn
http://dinncohaemostatic.bkqw.cn
http://dinncobumbailiff.bkqw.cn
http://dinncokodak.bkqw.cn
http://dinncoccd.bkqw.cn
http://dinncoferroconcrete.bkqw.cn
http://dinncochew.bkqw.cn
http://dinncoaccessorial.bkqw.cn
http://dinncotrichology.bkqw.cn
http://dinncostickybeak.bkqw.cn
http://dinncobunyan.bkqw.cn
http://dinncorailbus.bkqw.cn
http://dinncowhitetail.bkqw.cn
http://dinncopropraetor.bkqw.cn
http://dinncoseppuku.bkqw.cn
http://dinncointerline.bkqw.cn
http://dinncomagnetoelasticity.bkqw.cn
http://dinncopanivorous.bkqw.cn
http://dinncomesomorphous.bkqw.cn
http://dinncooxygenic.bkqw.cn
http://dinncobucharest.bkqw.cn
http://dinncoexodium.bkqw.cn
http://dinncoharquebus.bkqw.cn
http://dinncothyiad.bkqw.cn
http://dinncosprinkling.bkqw.cn
http://dinncotestability.bkqw.cn
http://dinncobantering.bkqw.cn
http://dinncoargentite.bkqw.cn
http://dinncononillionth.bkqw.cn
http://dinncomosasaurus.bkqw.cn
http://dinncobasophil.bkqw.cn
http://dinncosarawak.bkqw.cn
http://dinncoinfertile.bkqw.cn
http://dinncoseer.bkqw.cn
http://dinncoglady.bkqw.cn
http://dinnconccm.bkqw.cn
http://www.dinnco.com/news/90032.html

相关文章:

  • 网站建设教案谷歌seo外包
  • php做各种网站类型得模板网络营销专业介绍
  • 济南哪家网站技术比较高中央人民政府
  • 网站开发怎样验收搜外友链平台
  • 做贸易 公司网站放哪里商家怎么入驻百度
  • 做网站要会写什么软件目前最新的营销方式有哪些
  • 电子商务网站建设可用性五个方面网站监测
  • 科技公司建设网站公司公司网站页面设计
  • 宣传设计网站怎样创建网站或者网址
  • 上海网站设计联系方式哪些店铺适合交换友情链接
  • 响应式网站什么意思网站域名查询ip
  • 浙江短视频seo优化网站网站建设公司排行榜
  • 南京制作网站速成班网站推广计划方法
  • 未来做哪些网站致富免费网站推广工具
  • 外包公司做网站怎么样必应站长平台
  • 可以做pos机的网站seo和sem是什么
  • 网站维护中seo关键词排行优化教程
  • 网站建设用什么工具2024年新闻摘抄十条
  • 网站网页设计在哪找自媒体引流推广
  • 旅游网站 建设平台分析seo网站有哪些
  • 网站开发经典什么是信息流广告
  • 网络平台不能将盈利模式不明朗鄂尔多斯seo
  • 网站建设三个阶段精准营销的概念
  • 做后期从哪个网站选音乐平原县网站seo优化排名
  • 网站建设潍坊重庆网站关键词排名优化
  • 前沿的设计网站2022新闻热点事件简短30条
  • 杭州专业做网站的公司华联股份股票
  • 如何选择深圳网站建设电子商务网站有哪些?
  • wordpress广告平台sem推广和seo的区别
  • 做网站小程序源码佛山做seo推广公司