opensearch-docs-cn/index.md

5.5 KiB
Executable File
Raw Blame History

layout title nav_order redirect_from permalink
default Get started 1 /404.html /

OpenSearch 文档

本站点是有关 OpenSearch 相关的技术文档。

OpenSearch 是基于 Apache 2.0 许可证进行开发的搜索,分析和可视化组件,在 OpenSearch 中提供了高级安全特性警告SQL 支持,自动索引管理,深度性能分析等功能。

Get started{: .btn .btn-blue }


为什么使用 OpenSearch?

OpenSearch 是一个高效维护的套件,通常被用于下面的一些情况:

  • 日志分析Log analytics
  • 实时应用监控Real-time application monitoring
  • 点击流分析Clickstream analytics
  • 后台查询Search backend
组件 目的
OpenSearch 数据存储和搜索引擎
OpenSearch 面板OpenSearch Dashboards 搜索前台可视化界面
安全Security 针对集群的授权和访问控制
报警Alerting 当你的数据达到某个阈值后获得通知
SQL 使用 SQL 或者管道处理语言piped processing language来对你的数据进查询
索引状态管理Index State Management 自动化的索引操作
KNN 在你的矢量数据中找到 “nearest neighbors”
性能分析器Performance Analyzer 监控和优化你的集群
异常侦测Anomaly detection 识别非典型数据然后自动收到通知
异步查询Asynchronous search 在你的后台搜运行查询请求
跨集群复制Cross-cluster replication 在多个 OpenSearch 集群之间对你的数据进行复制

绝大多数的 OpenSearch 插件都有相对应的 OpenSearch 面板插件,能够提供方便、统一的用户界面。

有关更多本项目的的特性,请参考 FAQ 页面中的内容。


Docker quickstart

Docker {: .label .label-green }

  1. Install and start Docker Desktop.

  2. Run the following commands:

    docker pull opensearchproject/opensearch:{{site.opensearch_version}}
    docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" opensearchproject/opensearch:{{site.opensearch_version}}
    
  3. In a new terminal session, run:

    curl -XGET --insecure -u 'admin:admin' 'https://localhost:9200'
    
  4. Create your first index.

    curl -XPUT --insecure -u 'admin:admin' 'https://localhost:9200/my-first-index'
    
  5. Add some data to your newly created index.

    curl -XPUT --insecure -u 'admin:admin' 'https://localhost:9200/my-first-index/_doc/1' -H 'Content-Type: application/json' -d '{"Description": "To be or not to be, that is the question."}'
    
  6. Retrieve the data to see that it was added properly.

    curl -XGET --insecure -u 'admin:admin' 'https://localhost:9200/my-first-index/_doc/1'
    
  7. After verifying that the data is correct, delete the document.

    curl -XDELETE --insecure -u 'admin:admin' 'https://localhost:9200/my-first-index/_doc/1'
    
  8. Finally, delete the index.

    curl -XDELETE --insecure -u 'admin:admin' 'https://localhost:9200/my-first-index/'
    

To learn more, see Docker image and Docker security configuration.


Installation

For more comprehensive installation instructions for other download types, such as tarballs, see these pages:

The secure path forward

OpenSearch includes a demo configuration so that you can get up and running quickly, but before using OpenSearch in a production environment, you must configure the security plugin manually: your own certificates, your own authentication method, your own users, and your own passwords.

Looking for the Javadoc?

See opensearch.org/javadocs/.

Get involved

OpenSearch is supported by Amazon Web Services. All components are available under the Apache License, Version 2.0 on GitHub.

The project welcomes GitHub issues, bug fixes, features, plugins, documentation---anything at all. To get involved, see Contributing on the OpenSearch website.