本文档是针对 OpenSearch 的简体中文本地化仓库。包括有 OpenSearch 引擎以及相关的一些插件。仓库中的内容是从官方 GitHub 代码库中 Fork 下来后进行编译和修改的。
Go to file
YuCheng Hu 77e6d15506 更新 404 页面 2024-03-19 21:47:13 -04:00
.github Submit to main branch 2024-03-19 09:24:32 -04:00
_about Add 1.3.15 to version history (#6582) 2024-03-05 16:49:09 -05:00
_aggregations Revise precision range and description for geohash and geotile grid (#6504) 2024-02-29 09:08:12 -05:00
_analyzers Add documentation for Normalizers (#6415) 2024-02-15 10:04:47 -05:00
_api-reference Incorrect op_type param explanation (#6640) 2024-03-11 16:43:58 -04:00
_automating-configurations Add documentation for Search Workflow State API (#6546) 2024-03-05 13:32:24 -05:00
_benchmark "Linux and MacOS" => "Linux or MacOS" (#6576) 2024-03-06 12:59:21 -06:00
_clients Update OpenSearch-dot-net.md (#6690) 2024-03-14 20:18:10 -04:00
_dashboards Fix YAML error in time filter file (#6622) 2024-03-06 14:07:03 -05:00
_data 更新联系方式链接:https://www.isharkfly.com/t/opensearch/15530 2024-03-19 18:15:54 -04:00
_data-prepper Fix broken links to Cohere embedding connector and Data Prepper (#6710) 2024-03-18 14:48:53 -04:00
_developer-documentation Change navigation for index pages of collections (#6039) 2024-01-04 14:55:05 -05:00
_field-types improve wording (#6445) 2024-02-19 16:58:43 -08:00
_im-plugin [DOC] Support switch_aliases in shrink action. (#5511) 2024-02-01 11:03:38 -08:00
_includes 尝试代码重构 2024-03-19 09:30:10 -04:00
_ingest-pipelines remove ip data type (#6647) 2024-03-11 17:56:08 -06:00
_install-and-configure Update plugins.md (#6693) 2024-03-15 10:58:09 -04:00
_integrations Change navigation for index pages of collections (#6039) 2024-01-04 14:55:05 -05:00
_layouts Refactor home page layout (#6307) 2024-01-31 11:54:59 -05:00
_ml-commons-plugin Fix broken links to Cohere embedding connector and Data Prepper (#6710) 2024-03-18 14:48:53 -04:00
_monitoring-your-cluster Address feedback on PerfTop dashboard (#6641) 2024-03-11 14:19:27 -07:00
_observing-your-data Update Notifications doc with description of host deny list (#6490) 2024-02-23 15:17:08 -07:00
_plugins Fix link in concurrent segment search (#6436) 2024-02-19 11:56:44 -05:00
_query-dsl Deprecate max_token_score in neural sparse search (#6554) 2024-03-01 09:30:03 -05:00
_reporting Remove admin:admin default and update instructions for demo setup (#5887) 2024-02-01 11:01:58 -08:00
_sass Add flow framework documentation (#6257) 2024-02-07 18:44:49 -05:00
_search-plugins Fix minor typos (#6556) 2024-03-05 13:30:41 -05:00
_security Add required_audience, required_issuer guide to jwt (#6665) 2024-03-14 10:35:47 -05:00
_security-analytics Add threat intelligence for 2.12 (#6273) 2024-02-08 14:19:47 -06:00
_security-plugin Merge branch 'main' into docs_cn 2024-03-18 23:46:13 -04:00
_tools Add link to OpenSearch FAQ (#6412) 2024-02-15 09:13:56 -05:00
_troubleshoot Remove admin:admin default and update instructions for demo setup (#5887) 2024-02-01 11:01:58 -08:00
_tuning-your-cluster Fix ambiguity with settings for search_backpressure (#6655) 2024-03-13 14:27:56 -04:00
_upgrade-to Remove admin:admin default and update instructions for demo setup (#5887) 2024-02-01 11:01:58 -08:00
assets Updates SAML demo setup documentation (#6532) 2024-03-01 08:44:29 -08:00
docs 更新配置的域名设置 2024-03-18 23:51:55 -04:00
images Address feedback on PerfTop dashboard (#6641) 2024-03-11 14:19:27 -07:00
release-notes Add release notes 2.12 (#6454) 2024-02-20 16:58:27 -05:00
templates Update API_TEMPLATE.md (#4261) 2023-06-06 22:02:00 -04:00
.gitignore Update the code for main to test Chinese version of docs 2021-10-29 21:24:07 -04:00
.vale.ini Remove adverbs of time rule (#6323) 2024-01-31 12:13:35 -05:00
404.md 更新 404 页面 2024-03-19 21:47:13 -04:00
API_STYLE_GUIDE.md Add API and experimetal templates (#4258) 2023-06-06 18:13:45 -04:00
CNAME 更新配置的域名设置 2024-03-18 23:51:55 -04:00
CODE_OF_CONDUCT.md Initial commit 2021-05-03 10:11:12 -07:00
CONTRIBUTING.md Clarify that you are install bundler, and bundler takes care of jekyll (#6286) 2024-01-29 14:33:20 -05:00
FORMATTING_GUIDE.md Add closed details block to formatting guide (#6421) 2024-02-16 12:32:44 -05:00
Gemfile Merge branch 'main' into docs_cn 2024-03-18 23:46:13 -04:00
LICENSE Initial commit 2021-05-03 10:11:12 -07:00
MAINTAINERS.md Update MAINTAINERS.md (#6497) 2024-02-22 12:49:11 -08:00
NOTICE Remove year from copyright 2021-08-09 15:53:52 -07:00
README.md Merge branch 'main' into docs_cn 2024-03-18 23:46:13 -04:00
STYLE_GUIDE.md Adds new acronyms and modifies other guidance (#6447) 2024-02-20 10:10:12 -05:00
TERMS.md Adds new acronyms and modifies other guidance (#6447) 2024-02-20 10:10:12 -05:00
THIRD-PARTY Initial documentation cut 2021-05-05 10:09:47 -07:00
_config.yml 使用 GTM Tag manager 2024-03-19 18:36:54 -04:00
build.sh Add CI with link checker. (#3584) 2023-04-04 15:49:27 -04:00
check-links.sh Add CI with link checker. (#3584) 2023-04-04 15:49:27 -04:00
favicon.ico Initial documentation cut 2021-05-05 10:09:47 -07:00
favicon.png Initial documentation cut 2021-05-05 10:09:47 -07:00
favicon.svg Initial documentation cut 2021-05-05 10:09:47 -07:00
firebase.json Add file for firebase 2021-10-29 14:19:15 -04:00
index.md Separate clients, data prepper, and benchmark documentation (#5878) 2024-01-03 15:48:59 -05:00
opensearch-docs-cn.iml Submit to main branch 2024-03-19 09:15:02 -04:00

README.md

OpenSearch 文档

本仓库repository中包含有 OpenSearch 的文档, 在 OpenSearch 中提供了高级安全特性警告SQL 支持,自动索引管理,深度性能分析等功能。

中文本地化

本仓库的内容是从官方 GitHub 代码库中 Fork 下来后进行编译和修改的。完整编译的简体中文文档,请访问opensearch.ossez.com。 有关如何对内容进行编译和本地查看的方法,请查看本页面中有关项目本地部署的内容。

如果你对文档的内容有任何建议和需要修改的地方,请向本仓库中提交 PR本仓库使用默认的分支为 docs_cn,以区别官方使用的分支。

本文档使用的是 GitHub Pages 功能进行部署的,因此你也可以非常容易的将本文档中内容 Fork 到你的仓库中部署到你的域名下面,如果你在部署上有什么问题的话,请访问 OSSEZ.COM 中的内容,并参与讨论。

官方文档地址

你可以访问官方的文档地址 opensearch.org/docs 来显示完整被渲染后的文档。

社区成员的贡献对保持本文档的完整性,有效性,完整组织和保持最新起到了非常重要的作用。

  • Do you work on one of the various OpenSearch plugins? Take a look at the documentation for the plugin. Is everything accurate? Will anything change in the near future?

你可以做什么样的帮助

  • 你在对 OpenSearch 的插件进行开发吗?请查看有关插件的文档。在有关插件的文档中是否所有的内容都是准确的还有什么需要在后续开发中改进的呢?

    通常来说,项目团队将会对已经存在的文档保持必要的最小更新,这样能够让项目团队关注更多关键内容和重要的项目。

  • 你是否对 OpenSearch 的特定领域有专业的知识吗集群大小查询语言DSLDo you have expertise in a particular area of OpenSearch? Cluster sizing? 无痛脚本Painless scripting聚合AggregationsJVM 设置?请查看 OpenSearch 当前内容 来了解你是否可以为项目加入一些有价值的内容。 OpenSearch 文档项目组 非常高兴能够帮助你对内容进行润色和重新组织你的草稿。

  • 你是 OpenSearch 面板Dashboards的专家吗你是如何设置你的可视化环境的呢为什么这个可视化环境对你的项目或者组织来说是非常重要的呢针对 OpenSearch Dashboards 我们现在只有 非常有限 的内容,仅仅显示如何来进行安装。

  • 你是一个页面开发工程师web developer你是否希望为文档添加一个可选的黑暗模式dark mode针对代码复制提供一个拷贝到剪切板copy to clipboard的按钮或者有关能够增加曝光量的设计或者改进请参考 主要修改major changes 页面来获得有关完整本地化构建的相关信息。

  • 我们的 问题跟踪issue tracker 中包含有文档的缺陷bug和其他内容的问题在这里面将会被使用彩色标签标记为 "good first issue" 和 "help wanted"。

联系方式

如果你对文档进行贡献有任何问题,请通过链接联系下面的人来获得帮助:

网站是如何工作的

This repository contains many Markdown files organized into Jekyll "collections" (e.g. _search-plugins, _opensearch, etc.). Each Markdown file correlates with one page on the website.

Using plain text on GitHub has many advantages:

  • Everything is free, open source, and works on every operating system. Use your favorite text editor, Ruby, Jekyll, and Git.
  • Markdown is easy to learn and looks good in side-by-side diffs.
  • The workflow is no different than contributing code. Make your changes, build locally to check your work, and submit a pull request. Reviewers check the PR before merging.
  • Alternatives like wikis and WordPress are full web applications that require databases and ongoing maintenance. They also have inferior versioning and content review processes compared to Git. Static websites, such as the ones Jekyll produces, are faster, more secure, and more stable.

In addition to the content for a given page, each Markdown file contains some Jekyll front matter. Front matter looks like this:

---
layout: default
title: Alerting security
nav_order: 10
parent: Alerting
has_children: false
---

If you're making trivial changes, you don't have to worry about front matter.

If you want to reorganize content or add new pages, keep an eye on has_children, parent, and nav_order, which define the hierarchy and order of pages in the lefthand navigation. For more information, see the documentation for our upstream Jekyll theme.

Contribute content

There are three ways to contribute content, depending on the magnitude of the change.

Trivial changes

If you just need to fix a typo or add a sentence, this web-based method works well:

  1. On any page in the documentation, click the Edit this page link in the lower-left.

  2. Make your changes.

  3. Choose Create a new branch for this commit and start a pull request and Commit changes.

Minor changes

If you want to add a few paragraphs across multiple files and are comfortable with Git, try this approach:

  1. Fork this repository.

  2. Download GitHub Desktop, install it, and clone your fork.

  3. Navigate to the repository root.

  4. Create a new branch.

  5. Edit the Markdown files in /docs.

  6. Commit, push your changes to your fork, and submit a pull request.

Major changes

If you're making major changes to the documentation and need to see the rendered HTML before submitting a pull request, here's how to build locally:

  1. Fork this repository.

  2. Download GitHub Desktop, install it, and clone your fork.

  3. Navigate to the repository root.

  4. Install Ruby if you don't already have it. We recommend RVM, but use whatever method you prefer:

    curl -sSL https://get.rvm.io | bash -s stable
    rvm install 2.6
    ruby -v
    
  5. Install Jekyll if you don't already have it:

    gem install bundler jekyll
    
  6. Install dependencies:

    bundle install
    
  7. Build:

    sh build.sh
    
  8. If the build script doesn't automatically open your web browser (it should), open http://localhost:4000/docs/.

  9. Create a new branch.

  10. Edit the Markdown files in each collection (e.g. _security-plugin/).

    If you're a web developer, you can customize _layouts/default.html and _sass/custom/custom.scss.

  11. When you save a file, marvel as Jekyll automatically rebuilds the site and refreshes your web browser. This process can take anywhere from 10-30 seconds.

  12. When you're happy with how everything looks, commit, push your changes to your fork, and submit a pull request.

Writing tips

  1. Try to stay consistent with existing content and consistent within your new content. Don't call the same plugin KNN, k-nn, and k-NN in three different places.

  2. Shorter paragraphs are better than longer paragraphs. Use headers, tables, lists, and images to make your content easier for readers to scan.

  3. Use bold for user interface elements, italics for key terms or emphasis, and monospace for Bash commands, file names, REST paths, and code.

  4. Markdown file names should be all lowercase, use hyphens to separate words, and end in .md.

  5. Avoid future tense. Use present tense.

    Bad: After you click the button, the process will start.

    Better: After you click the button, the process starts.

  6. "You" refers to the person reading the page. "We" refers to the OpenSearch contributors.

    Bad: Now that we've finished the configuration, we have a working cluster.

    Better: At this point, you have a working cluster, but we recommend adding dedicated master nodes.

  7. Don't use "this" and "that" to refer to something without adding a noun.

    Bad: This can cause high latencies.

    Better: This additional loading time can cause high latencies.

  8. Use active voice.

    Bad: After the request is sent, the data is added to the index.

    Better: After you send the request, the OpenSearch cluster indexes the data.

  9. Introduce acronyms before using them.

    Bad: Reducing customer TTV should accelerate our ROIC.

    Better: Reducing customer time to value (TTV) should accelerate our return on invested capital (ROIC).

  10. Spell out one through nine. Start using numerals at 10. If a number needs a unit (GB, pounds, millimeters, kg, celsius, etc.), use numerals, even if the number if smaller than 10.

    Bad: 3 kids looked for thirteen files on a six GB hard drive.

    Better: Three kids looked for 13 files on a 6 GB hard drive.

New releases

  1. Branch.

  2. Change the opensearch_version, opensearch_major_minor_version, and lucene_version variables in _config.yml.

  3. Start up a new cluster using the updated Docker Compose file in docs/install/docker.md.

  4. Update the version table in version-history.md.

    Use curl -XGET https://localhost:9200 -u admin:admin -k to verify the OpenSearch and Lucene versions.

  5. Update the plugin compatibility table in _opensearch/install/plugin.md.

    Use curl -XGET https://localhost:9200/_cat/plugins -u admin:admin -k to get the correct version strings.

  6. Update the plugin compatibility table in _dashboards/install/plugins.md.

    Use docker ps to find the ID for the OpenSearch Dashboards node. Then use docker exec -it <opensearch-dashboards-node-id> /bin/bash to get shell access. Finally, run ./bin/opensearch-dashboards-plugin list to get the plugins and version strings.

  7. Run a build (build.sh), and look for any warnings or errors you introduced.

  8. Verify that the individual plugin download links in docs/install/plugins.md and docs/opensearch-dashboards/plugins.md work.

  9. Check for any other bad links (check-links.sh). Expect a few false positives for the localhost links.

  10. Submit a PR.

Classes within Markdown

This documentation uses a modified version of the just-the-docs Jekyll theme, which has some useful classes for labels and buttons:

[Get started](#get-started){: .btn .btn-blue }

## Get started
New
{: .label .label-green }
  • Labels come in default (blue), green, purple, yellow, and red.
  • Buttons come in default, purple, blue, green, and outline.
  • Warning, tip, and note blocks are available ({: .warning }, etc.).
  • If an image has a white background, you can use {: .img-border } to add a one pixel border to the image.

These classes can help with readability, but should be used sparingly. Each addition of a class damages the portability of the Markdown files and makes moving to a different Jekyll theme (or a different static site generator) more difficult.

Besides, standard Markdown elements suffice for most documentation.

Labels for APIs

Each API operation has a label indicating when it was introduced. For most operations, this label is 1.0:

## Get roles
Introduced 1.0
{: .label .label-purple }

If we introduce a breaking change to an operation, add an additional label with a link to the release note for that breaking change:

## Get roles
Introduced 1.0
{: .label .label-purple }
[Last breaking change 2.0](https://example.com)
{: .label .label-red }

Math

If you want to use the sorts of pretty formulas that MathJax allows, add has_math: true to the Jekyll page metadata. Then insert LaTeX math into HTML tags with the rest of your Markdown content:

## Math

Some Markdown paragraph. Here's a formula:

<p>
  When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
  \[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\]
</p>

And back to Markdown.

编码规范Code of conduct

本项目遵循 开源项目编码规范Open Source Code of Conduct 中定义的规范。

安全特性Security

If you discover a potential security issue in this project, we ask that you notify AWS/Amazon Security using our vulnerability reporting page. Do not create a public GitHub issue.

许可证License

This project is licensed under the Apache-2.0 License.

版权Copyright

Copyright OpenSearch 贡献者contributors