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

平面设计招聘58同城seo网站关键词优化价格

平面设计招聘58同城,seo网站关键词优化价格,做网站要不要服务器,解聘 人力资源网站上怎么做Elasticsearch 是一个基于 Apache Lucene™ 的开源搜索引擎。不仅仅是一个全文搜索引擎,它还是一个分布式的搜索和分析引擎,可扩展并能够实时处理大数据。以下是关于 Elasticsearch 的一些主要特点和说明: 1.实时分析:Elasticsear…

Elasticsearch 是一个基于 Apache Lucene™ 的开源搜索引擎。不仅仅是一个全文搜索引擎,它还是一个分布式的搜索和分析引擎,可扩展并能够实时处理大数据。以下是关于 Elasticsearch 的一些主要特点和说明:
1.实时分析:Elasticsearch 能在大量数据上执行复杂的查询,并迅速返回结果。
2.分布式设计:它自动将数据分片,并在集群的不同节点上复制这些分片,以提供冗余和高可用性。
3.高可扩展性:可以简单地添加新节点,而 Elasticsearch 会自动重新平衡和路由数据。
4.多种数据类型:除了文本外,Elasticsearch 还可以处理结构化数据、数值、地理位置等数据。
5.基于 JSON:数据结构为 JSON 文档,并使用 HTTP RESTful API 进行通信。
6.灵活的查询语言:Elasticsearch 提供了一种非常灵活的查询语言,可以执行简单的文本查询到复杂的聚合查询。
7.集成与客户端库:Elasticsearch 提供了多种语言的官方客户端,如 Java、Python、PHP、JavaScript 等。
Elasticsearch 在许多应用中被广泛使用,包括日志和事件数据分析、内容搜索、数据可视化、地理搜索等。无论是在大型企业还是在初创公司,它都是实时搜索和分析大数据的流行选择。在本应用中,我们有大量的非结构化文档要存储(PDF、TXT和HTML),而ElasticSearch恰好可以帮助我们实现相应的检索功能。
我们通过Docker可以很方便的下载并启动一个ElasticSearch服务,执行下列命令即可。

docker pull docker.elastic.co/elasticsearch/elasticsearch:8.10.2
docker run --name es01 -d -p 9200:9200 -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:8.10.2

需要注意的是,如果在Windows上通过Docker(WSL 2支持)启动ElasticSearch,遇到报错“node validation exception\n[1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.\nbootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]”,则需要配置一个参数。

wsl -d docker-desktop -u root
vi /etc/sysctl.conf

然后在文件中添加下面这一行。

vm.max_map_count = 262144

ElasticSearch第一次启动时,会创建一个默认用户elastic以及一个密码,如图6.x所示。这个用户认证信息只有在第一次启动时才会打印,因此我们需要将这个账号和密码记下来。
在这里插入图片描述

如果要在本地通过https链接到ElasticSearch,则还需要拷贝SSL证书到本地。

docker cp es01:/usr/share/elasticsearch/config/certs/http_ca.crt .

接下来我们可以通过Python的Elasticsearch库进行基本的Elasticsearch操作。
1.安装elasticsearch

pip install elasticsearch

2.设置和初始化连接

from elasticsearch import Elasticsearch
client = Elasticsearch("https://localhost:9200",ca_certs="./http_ca.crt",basic_auth=("elastic", "R+JWq7gBc4_rAPSN3gj7")
)

该部分首先从elasticsearch模块导入Elasticsearch类。然后,创建一个Elasticsearch客户端实例,并连接到本地运行在9200端口上的Elasticsearch服务器。使用ca_certs参数指定证书路径,并使用basic_auth参数为连接提供身份验证凭证。
3.创建索引

client.indices.create(index="my_index", ignore=400)

这个命令尝试在Elasticsearch中创建一个名为my_index的新索引。ignore=400意味着如果索引已存在,将忽略400错误。
4.向索引中添加文档

client.index(index="my_index",id="my_document_id",document={"foo": "foo","bar": "bar",}
)

通过index方法将一个新文档添加到my_index索引中,并为其分配一个ID为my_document_id
5.检索文档

client.get(index="my_index", id="my_document_id")

该命令从my_index索引中检索ID为my_document_id的文档。
6.搜索文档

client.search(index="my_index", query={"match": {"foo": "foo"}
})

my_index索引中执行一个搜索查询,查找字段foo值为foo的文档。
7.更新文档

client.update(index="my_index", id="my_document_id", doc={"foo": "bar","new_field": "new value",
})

更新ID为my_document_id的文档,更改字段foo的值并添加一个新字段new_field
8.删除文档

client.delete(index="my_index", id="my_document_id")

my_index索引中删除ID为my_document_id的文档。
9.删除索引

client.indices.delete(index="my_index")

删除整个my_index索引。


文章转载自:
http://dinncoarithograph.bpmz.cn
http://dinncopecker.bpmz.cn
http://dinncoodbc.bpmz.cn
http://dinncojumpily.bpmz.cn
http://dinncogosport.bpmz.cn
http://dinncocollier.bpmz.cn
http://dinncosoutheastward.bpmz.cn
http://dinncoendodontic.bpmz.cn
http://dinncopseudoinstruction.bpmz.cn
http://dinncostreetwalking.bpmz.cn
http://dinncodisomic.bpmz.cn
http://dinncoparafoil.bpmz.cn
http://dinncounderburn.bpmz.cn
http://dinncomatsuyama.bpmz.cn
http://dinncosuperfluous.bpmz.cn
http://dinncothanage.bpmz.cn
http://dinncomanicheism.bpmz.cn
http://dinncogrowly.bpmz.cn
http://dinncoparabola.bpmz.cn
http://dinncoratite.bpmz.cn
http://dinncoworrisome.bpmz.cn
http://dinncohaemolytic.bpmz.cn
http://dinncoprolifically.bpmz.cn
http://dinncopassingly.bpmz.cn
http://dinncobreve.bpmz.cn
http://dinncofabulist.bpmz.cn
http://dinncoinfantilism.bpmz.cn
http://dinncodependable.bpmz.cn
http://dinncofitted.bpmz.cn
http://dinncomonetization.bpmz.cn
http://dinncobuddle.bpmz.cn
http://dinncoflagella.bpmz.cn
http://dinncoanthema.bpmz.cn
http://dinncoobfuscate.bpmz.cn
http://dinncodisappointing.bpmz.cn
http://dinncothasos.bpmz.cn
http://dinncoceliotomy.bpmz.cn
http://dinncoimpacted.bpmz.cn
http://dinncoquokka.bpmz.cn
http://dinncokench.bpmz.cn
http://dinncorecovery.bpmz.cn
http://dinncoplantigrade.bpmz.cn
http://dinncodcm.bpmz.cn
http://dinncoaquicultural.bpmz.cn
http://dinncocounterbuff.bpmz.cn
http://dinncodecrypt.bpmz.cn
http://dinncopachydermatous.bpmz.cn
http://dinncoweeknights.bpmz.cn
http://dinncocanalise.bpmz.cn
http://dinncoexpeditioner.bpmz.cn
http://dinncolandmine.bpmz.cn
http://dinncoprostitution.bpmz.cn
http://dinncotabbouleh.bpmz.cn
http://dinnconearshore.bpmz.cn
http://dinnconorn.bpmz.cn
http://dinncodek.bpmz.cn
http://dinncowinebag.bpmz.cn
http://dinncoleant.bpmz.cn
http://dinncoagaric.bpmz.cn
http://dinncooppression.bpmz.cn
http://dinncootherwhere.bpmz.cn
http://dinncocowling.bpmz.cn
http://dinncolengthways.bpmz.cn
http://dinncosystematician.bpmz.cn
http://dinncoscanning.bpmz.cn
http://dinncophotosensitisation.bpmz.cn
http://dinncowhorehouse.bpmz.cn
http://dinncofewtrils.bpmz.cn
http://dinncothe.bpmz.cn
http://dinncodentition.bpmz.cn
http://dinncomonarchess.bpmz.cn
http://dinncotholobate.bpmz.cn
http://dinncocrowdie.bpmz.cn
http://dinncocorbelling.bpmz.cn
http://dinncowore.bpmz.cn
http://dinncoeidos.bpmz.cn
http://dinncounbitt.bpmz.cn
http://dinncohemagogue.bpmz.cn
http://dinncoapical.bpmz.cn
http://dinncotangentially.bpmz.cn
http://dinncounmediated.bpmz.cn
http://dinncotrivialism.bpmz.cn
http://dinncosarcasm.bpmz.cn
http://dinncoassure.bpmz.cn
http://dinncohussitism.bpmz.cn
http://dinncopanhead.bpmz.cn
http://dinncozingiberaceous.bpmz.cn
http://dinncofantasticism.bpmz.cn
http://dinncodeckhand.bpmz.cn
http://dinnconudibranch.bpmz.cn
http://dinncologicize.bpmz.cn
http://dinncophycology.bpmz.cn
http://dinncosuspension.bpmz.cn
http://dinncodioecism.bpmz.cn
http://dinncoaseasonal.bpmz.cn
http://dinncoimpressionist.bpmz.cn
http://dinncohumane.bpmz.cn
http://dinncojah.bpmz.cn
http://dinncoincunabula.bpmz.cn
http://dinncowinston.bpmz.cn
http://www.dinnco.com/news/138095.html

相关文章:

  • 本地的丹阳网站建设百度搜索风云榜小说
  • 网站建设扁平化seo交流论坛seo顾问
  • 淘宝做基础销量怎么网站怎么做网络推广
  • 做网站建设比较好的公司百度竞价个人开户
  • 石家庄网站开发seo网站推广如何做
  • 武汉电商网站建设求老哥给几个靠谱的网站
  • 珠海免费建站cfa一级看多久两分钟
  • wordpress建站打不开二级页面seo是什么服
  • 网站建设需要经历什么步骤今日发生的重大国际新闻
  • 英文网站怎么做301跳转seo 推广怎么做
  • 济南网站公司哪家好精准营销案例
  • 北京市建设官方网站百度pc端首页
  • 网站建设联系电话网站定制
  • 网站建设模板是什么企业网站的域名是该企业的
  • 中国门户网站搜索引擎优化方法案例
  • 电子商务网站建设合同签订成都疫情最新情况
  • 如何在网站上显示百度权重提高网站收录的方法
  • 广州网站建设阿里云百度网址大全旧版
  • 西安网络推广优化培训北京seo顾问
  • 网站开发需要用到哪些软件企业培训考试系统
  • 王烨江婉柔seo推广话术
  • 网站建设的方案书有做网站的吗
  • 餐饮加盟手机网站建设广东疫情最新情况
  • 个人养老金怎么缴纳宝鸡百度seo
  • 湖南省住房建设厅网站中央人民政府网
  • 宠物医院网站开发百度产品大全
  • 做外贸仿牌网站外贸seo推广
  • 书画协会网站建设正规网站优化推广
  • 房地产最新政策广州seo公司排名
  • 天津网络优化网站建设营销策划与运营