<p align="center">
<img src="https://github.com/elastic/elasticsearch-py/raw/main/docs/logo-elastic-glyph-color.svg" width="20%" alt="Elastic logo" />
</p>
# Elasticsearch Python Client
<p align="center">
<a href="https://pypi.org/project/elasticsearch"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/elasticsearch" /></a>
<a href="https://pypi.org/project/elasticsearch"><img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/elasticsearch" /></a>
<a href="https://anaconda.org/conda-forge/elasticsearch"><img alt="Conda Version" src="https://img.shields.io/conda/vn/conda-forge/elasticsearch" /></a>
<a href="https://pepy.tech/project/elasticsearch?versions=*"><img alt="Downloads" src="https://static.pepy.tech/badge/elasticsearch" /></a>
<br/>
<a href="https://github.com/elastic/elasticsearch-py/actions/workflows/ci.yml?query=workflow%3ACI"><img alt="Build Status on GitHub" src="https://github.com/elastic/elasticsearch-py/workflows/CI/badge.svg" /></a>
<a href="https://buildkite.com/elastic/elasticsearch-py-integration-tests"><img alt="Buildkite Status on Buildkite" src="https://badge.buildkite.com/68e22afcb2ea8f6dcc20834e3a5b5ab4431beee33d3bd751f3.svg" /></a>
<a href="https://elasticsearch-py.readthedocs.io"><img alt="Documentation Status" src="https://readthedocs.org/projects/elasticsearch-py/badge/?version=latest" /></a><br>
</p>
*The official Python client for Elasticsearch.*
## Features
* Translating basic Python data types to and from JSON
* Configurable automatic discovery of cluster nodes
* Persistent connections
* Load balancing (with pluggable selection strategy) across available nodes
* Failed connection penalization (time based - failed connections won't be
retried until a timeout is reached)
* Support for TLS and HTTP authentication
* Thread safety across requests
* Pluggable architecture
* Helper functions for idiomatically using APIs together
## Installation
[Download the latest version of Elasticsearch](https://www.elastic.co/downloads/elasticsearch)
or
[sign-up](https://cloud.elastic.co/registration?elektra=en-ess-sign-up-page)
for a free trial of Elastic Cloud.
Refer to the [Installation section](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_installation)
of the getting started documentation.
## Connecting
Refer to the [Connecting section](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_connecting)
of the getting started documentation.
## Usage
-----
* [Creating an index](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_creating_an_index)
* [Indexing a document](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_indexing_documents)
* [Getting documents](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_getting_documents)
* [Searching documents](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_searching_documents)
* [Updating documents](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_updating_documents)
* [Deleting documents](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_deleting_documents)
* [Deleting an index](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_deleting_an_index)
## Compatibility
Language clients are forward compatible; meaning that the clients support
communicating with greater or equal minor versions of Elasticsearch without
breaking. It does not mean that the clients automatically support new features
of newer Elasticsearch versions; it is only possible after a release of a new
client version. For example, a 8.12 client version won't automatically support
the new features of the 8.13 version of Elasticsearch, the 8.13 client version
is required for that. Elasticsearch language clients are only backwards
compatible with default distributions and without guarantees made.
| Elasticsearch Version | Elasticsearch-Python Branch | Supported |
| --------------------- | ------------------------ | --------- |
| main | main | |
| 8.x | 8.x | 8.x |
| 7.x | 7.x | 7.17 |
If you have a need to have multiple versions installed at the same time older
versions are also released as ``elasticsearch7`` and ``elasticsearch8``.
## Documentation
Documentation for the client is [available on elastic.co] and [Read the Docs].
[available on elastic.co]: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html
[Read the Docs]: https://elasticsearch-py.readthedocs.io
## Feedback ð£ï¸
The engineering team here at Elastic is looking for developers to participate in
research and feedback sessions to learn more about how you use our Python client and
what improvements we can make to their design and your workflow. If you're interested in
sharing your insights into developer experience and language client design, please fill
out this [short form]. Depending on the number of responses we get, we may either
contact you for a 1:1 conversation or a focus group with other developers who use the
same client. Thank you in advance - your feedback is crucial to improving the user
experience for all Elasticsearch developers!
[short form]: https://forms.gle/bYZwDQXijfhfwshn9
## License
This software is licensed under the [Apache License 2.0](./LICENSE). See [NOTICE](./NOTICE).
没有合适的资源?快使用搜索试试~ 我知道了~
一个基于Elasticsearch的Python项目示例源码
共868个文件
asciidoc:608个
py:162个
rst:45个
需积分: 5 0 下载量 151 浏览量
2024-07-05
17:56:55
上传
评论
收藏 1.47MB ZIP 举报
温馨提示
您可以按照以下步骤下载、配置和使用Elasticsearch数据库: 下载Elasticsearch数据库 访问Elasticsearch官方网站:https://www.elastic.co/downloads/elasticsearch 根据您的操作系统选择合适的版本并下载安装包(通常为zip或tar.gz格式)。 配置Elasticsearch数据库 解压下载的安装包到您想要安装Elasticsearch的目录。 进入Elasticsearch的config目录,找到elasticsearch.yml文件,用文本编辑器打开。 根据您的需求修改elasticsearch.yml文件中的配置,如端口、集群名称、数据存储路径等。 保存并关闭elasticsearch.yml文件。 启动Elasticsearch数据库 打开命令行工具,切换到Elasticsearch的bin目录。 运行以下命令启动Elasticsearch: ./elasticsearch 等待一段时间,直到Elasticsearch成功启动。您可以通过访问http://localhost:9200来验证是否正常
资源推荐
资源详情
资源评论
收起资源包目录
一个基于Elasticsearch的Python项目示例源码 (868个子文件)
Dockerfile.app 230B
esql-pandas.asciidoc 43KB
release-notes.asciidoc 18KB
configuration.asciidoc 15KB
connecting.asciidoc 13KB
migration.asciidoc 12KB
open-telemetry.asciidoc 6KB
overview.asciidoc 3KB
integrations.asciidoc 3KB
getting-started.asciidoc 3KB
8e68cdfad45e7e6dff254d931eea29d4.asciidoc 2KB
examples.asciidoc 2KB
helpers.asciidoc 2KB
5a006feed86309b547bbaa1baca1c496.asciidoc 2KB
2d37b02cbf6d30ae11bf239a54ec9423.asciidoc 2KB
e3678142aec988e2ff0ae5d934dc39e9.asciidoc 2KB
343dd09a8c76987e586858be3bdc51eb.asciidoc 2KB
77d0780c5faea4c9ec51a322a6811b3b.asciidoc 2KB
6cd083045bf06e80b83889a939a18451.asciidoc 1KB
dfa16b7300d225e013f23625f44c087b.asciidoc 1KB
a04a8d90f8245ff5f30a9983909faa1d.asciidoc 1KB
dd792bb53703a57f9207e36d16e26255.asciidoc 1KB
6db118771354792646229e7a3c30c7e9.asciidoc 1KB
d04f0c8c44e8b4fb55f2e7d9d05977e7.asciidoc 1KB
0fb472645116d58ddef89ca976d15a01.asciidoc 1KB
8cd00a3aba7c3c158277bc032aac2830.asciidoc 1KB
c725c72ead2dae0205a5a34a50d7ad83.asciidoc 1KB
229b83cbcd8efa1b0288a728a2abacb4.asciidoc 1KB
711443504b69d0d296e717c716a223e2.asciidoc 1KB
df34c8ebaaa59a3ee0e3f28e2443bc30.asciidoc 1KB
f4c194628761a4cf2a01453a96bbcc3c.asciidoc 1KB
39ce44333d28ed2b833722d3e3cb06f3.asciidoc 1024B
c6151a0788a10a7f40da684d72c3255c.asciidoc 1007B
ae398a6b6494e7982ef2549fc2cd2d8e.asciidoc 996B
13d90ba227131aefbf4fcfd5992e662a.asciidoc 986B
ad57ccba0a060da4f5313692fa26a235.asciidoc 979B
4a2080ae55d931eb0643cc3eb91ec524.asciidoc 970B
f642b64e592131f37209a5100fe161cc.asciidoc 958B
7a0eb2222fe282d3aab66e12feff2a3b.asciidoc 953B
c9c396b94bb88098477e2b08b55a12ee.asciidoc 927B
5f8fb5513d4f725434db2f517ad4298f.asciidoc 887B
50522d3d5b3d055f712ad737e3d1707a.asciidoc 880B
56a903530990313b753b1be33578997a.asciidoc 836B
4ba86373e13e106de044f190343be328.asciidoc 820B
6aa2941855d13f365f70aa8767ecb137.asciidoc 816B
cdc04e6d3d37f036c7045ee4a582ef06.asciidoc 814B
f454e3f8ad5f5bd82a4a25af7dee9ca1.asciidoc 800B
eada8af6588584ac88f1e5b15f4a5c2a.asciidoc 790B
installation.asciidoc 789B
d98fb2ff2cdd154dff4a576430755d98.asciidoc 771B
643b9506d1129d5215f9a1bb0b509aba.asciidoc 762B
7c24d4bef3f2045407fbf1b95c5416f9.asciidoc 743B
ef779b87b3b0fb6e6bae9c8875e3a1cf.asciidoc 742B
edcfadbfb14d97a2f5e6e21ef7039818.asciidoc 734B
5b8119b4d9a09f4643be5a5b40875c8f.asciidoc 733B
1e871f060dbe1a5c316ed205278804a8.asciidoc 727B
97f260817b60f3deb7f7034d7dee7e12.asciidoc 725B
6c3f7c8601e8cc13d36eef98a5e2cb34.asciidoc 723B
2fe28d9a91b3081a9ec4601af8fb7b1c.asciidoc 721B
b430122345d560bbd2a77826f5c475f7.asciidoc 718B
873fbbc6ab81409058591385fd602736.asciidoc 715B
5c6fbeac20dc23b613847f35d431ecab.asciidoc 710B
51b40610ae05730b4c6afd25647d7ae0.asciidoc 704B
3b0475515ee692a2d9850c2bd7cdb895.asciidoc 692B
1cfa04e9654c1484e3d4c75bf439400a.asciidoc 688B
0b987b4101e016653a32d7b092d47e4c.asciidoc 685B
ea61aa2531ea73ccc0acd2d41f0518eb.asciidoc 683B
f09817fd13ff3dce52eb79d0722409c3.asciidoc 678B
1d827ae674970692643ea81991e5396e.asciidoc 671B
9a02bd47c000a3d9a8911233c37c890f.asciidoc 667B
529b975b7cedaac58dce9821956adc37.asciidoc 667B
c208de54369379e8d78ab201be18b6be.asciidoc 663B
23af230e824f48b9cd56a4cf973d788c.asciidoc 650B
8aa74aee3dcf4b34028e4c5e1c1ed27b.asciidoc 646B
d2f52c106685bd8eab47e11d644d7a70.asciidoc 644B
095e3f21941a9cc75f398389a075152d.asciidoc 640B
360c4f373e72ba861584ee85bd218124.asciidoc 640B
746e0a1cb5984f2672963b363505c7b3.asciidoc 638B
10535507a9735fcf06600444b9067d4c.asciidoc 623B
850bfd0a00d32475a54ac7f87fb4cc4d.asciidoc 620B
d64679f8a53928fe9958dbe5ee5d9d13.asciidoc 616B
4be07b34db282044c88d5021c7ea08ee.asciidoc 599B
f8a0010753b1ff563dc42d703902d2fa.asciidoc 589B
2cd8439db5054c93c49f1bf50433e1bb.asciidoc 588B
858fde15fb0a0340873b123043f8c3b4.asciidoc 588B
3eb4cdd4a799a117ac1ff5f02b18a512.asciidoc 586B
4f792d86ff79dcfe4643cd95505f8d5f.asciidoc 585B
e891e1d4805172da45a81f62b6b44aca.asciidoc 583B
c654b09be981be12fc7be0ba33f8652b.asciidoc 577B
1233be1d4c9c7ca54126f1a0693b26de.asciidoc 571B
641f75862c70e25e79d249d9e0a79f03.asciidoc 570B
f3574cfee3971d98417b8dc574a91be0.asciidoc 567B
3544f17cb97b613a2f733707c676f759.asciidoc 559B
2716453454dbf9c6dde2ea6850a62214.asciidoc 557B
2342a56279106ea643026df657bf7f88.asciidoc 556B
5d9d7b84e2fec7ecd832145cbb951cf1.asciidoc 555B
d3a5b70d493e0bd77b3f2b586341c83c.asciidoc 553B
0e3b4a48a3450cd99c95ec46d4701b58.asciidoc 553B
4fe78a4dfb747fd5dc34145ec6b76183.asciidoc 551B
2224143c45dfc83a2d10b98cd4f94bb5.asciidoc 550B
共 868 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
ConneyWu
- 粉丝: 601
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功