Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
a3d7ad9
Revamping documentations to reflect updates.
epugh Nov 23, 2024
f0f2f43
Format as bold the header (#8626)
epugh Oct 28, 2024
de342b3
Fix capitilzation of default engine example (#8624)
Naarcha-AWS Oct 28, 2024
ad5b07d
Add URI paths for cluster stats filtering. (#8595)
SwethaGuptha Oct 29, 2024
3b8125a
Add SQL PIT reference (#8541)
Swiddis Oct 29, 2024
885af87
Add Migrations directory (#8616)
Naarcha-AWS Oct 29, 2024
a4f70e1
Data Stream support for Audit- Log (#8356)
tmanninger Oct 29, 2024
d03c4bb
Add new rename_alias parameters for restore-snapshot (#8544)
mispencer Oct 29, 2024
a050b05
Adding documentation for _list APIs (#8594)
gargharsh3134 Oct 29, 2024
fa8a109
Added from and to parameters to top N queries to specify time range (…
LilyCaroline17 Oct 29, 2024
d4c86af
Add new indexing parameter and update performance tuning instruction …
VijayanB Oct 30, 2024
bacde8d
Documentation for query field name and datatype in query shape (#8631)
deshsidd Oct 30, 2024
33f70b4
Add missing parameter to append ingest processor (#8635)
kolchfa-aws Oct 30, 2024
602598b
Update kinesis.md (#8641)
kolchfa-aws Oct 31, 2024
62e6128
add document for Query Insights health_stats API (#8627)
ansjcy Oct 31, 2024
1a10618
Document setting allowing size > 0 queries into request cache (#8634)
peteralfonsi Nov 1, 2024
9270c6f
Adds precompute and preaggreate to Vale (#8647)
natebower Nov 1, 2024
11e4e58
Adds precompute and preaggregate to terms (#8648)
natebower Nov 1, 2024
3a6a961
Add documentation for star tree index feature (#8598)
bharath-techie Nov 1, 2024
6faaabc
Update SQL/PPL multiple value field limitation (#8646)
penghuo Nov 4, 2024
60e39f2
Update reporting record limit tip (#8652)
Swiddis Nov 4, 2024
f27a3be
Add new use cases to ML Inference Search Response Processor (#8639)
mingshl Nov 4, 2024
17c528f
Additional star tree feedback. (#8650)
Naarcha-AWS Nov 5, 2024
e934bc2
Add decimal digit token filter docs #7923 (#7977)
AntonEliatra Nov 5, 2024
53b2d6c
Add delimited payload token filter #7978 (#7988)
AntonEliatra Nov 5, 2024
ea402b1
Add condition token filter docs #7923 (#7950)
AntonEliatra Nov 5, 2024
672803f
doc: add document for dashboards assistant (#8622)
ruanyl Nov 5, 2024
c9de87d
Add 2.18 version (#8660)
kolchfa-aws Nov 5, 2024
f9c0ddb
Add 2.18 to version history (#8661)
kolchfa-aws Nov 5, 2024
d6efcb3
Add release notes 2.18 (#8663)
kolchfa-aws Nov 5, 2024
b9ad1e8
Correct experimental template. (#8686)
kolchfa-aws Nov 6, 2024
6826c57
[Workspace] Add documentation for workspace and ACL (#8643)
SuZhou-Joe Nov 6, 2024
df14bec
AWS Lambda plugin documentation (#8655)
srikanthjg Nov 7, 2024
f141253
fixing Typo (#8688)
kavyaprathyusha Nov 8, 2024
3908c2f
[DOC] Installing ruby for Apple silicon missing (#8618)
brianf-aws Nov 8, 2024
3935b60
Properly render documentation with double curly braces (#8702)
dbwiddis Nov 11, 2024
db5971e
Navbar: Change OpenSearch logo to link to .org site. (#8695)
kaimmej Nov 11, 2024
4eff118
Update nested.md (#8700)
meve Nov 11, 2024
68bc208
Update condition.md (#8731)
kolchfa-aws Nov 11, 2024
4aa7636
[Jekyll] Spec Insert Plugin (#8692)
nhtruong Nov 11, 2024
9582102
Add keep type docs #8063 (#8122)
AntonEliatra Nov 12, 2024
86e170b
Revert "Document setting allowing size > 0 queries into request cache…
kolchfa-aws Nov 13, 2024
12c0958
Update snapshot-restore.md (#8734)
pjuri Nov 13, 2024
0faa63b
add wlm feature overview (#8632)
kaushalmahi12 Nov 13, 2024
1d5a379
Update index.md (#8743)
kolchfa-aws Nov 14, 2024
0cddaa3
Add dictionary decompounder docs #7979 (#7994)
AntonEliatra Nov 14, 2024
2c1a0d4
Add edge n-gram token filter docs #7980 (#8025)
AntonEliatra Nov 14, 2024
388c78d
Add fingerprint token filter #7982 (#8059)
AntonEliatra Nov 14, 2024
8c63d73
Add elision token filter docs #7981 (#8026)
AntonEliatra Nov 14, 2024
555c1d8
Add hunspell token filter #8061 (#8070)
AntonEliatra Nov 14, 2024
59f1ab0
Add keep words token filter docs #8064 (#8124)
AntonEliatra Nov 14, 2024
52b69e5
Add hyphenation_decompounder token filter docs #8062 (#8120)
AntonEliatra Nov 14, 2024
7b9d8f5
Add keyword marker token filter docs #8065 (#8134)
AntonEliatra Nov 14, 2024
566b377
adding language analyzers (#8591)
AntonEliatra Nov 14, 2024
3496b3e
Update html-character-filter.md (#8758)
kolchfa-aws Nov 14, 2024
f00fcec
Fix: Correct document for dashboards assistant (#8762)
yuye-aws Nov 15, 2024
f4e8812
Add querygroup lifecycle api documentation (#8628)
ruai0511 Nov 15, 2024
db227c2
Delete extraneous line in an example request (#8765)
kolchfa-aws Nov 15, 2024
ee998fe
[ Jekyll ] [ SpecInsert ] omit_header (#8766)
nhtruong Nov 15, 2024
6b9d003
Modify lambda processor and sink documentation (#8697)
srikanthjg Nov 15, 2024
129c65f
Fix typo in getting started (#8772)
Naarcha-AWS Nov 19, 2024
be4e063
Additions to data source acceleration (#8759)
lizsnyder Nov 19, 2024
37eb7ab
Change link in update settings (#8773)
kolchfa-aws Nov 19, 2024
bab07df
Document change to size > 0 setting for request cache (#8684)
peteralfonsi Nov 19, 2024
58e44cc
Clarify master-to-cluster-manager name change in index.md (#8784)
bwolak Nov 20, 2024
d3d2778
Order sections to reflect API template (#8782)
Naarcha-AWS Nov 20, 2024
2708633
Update performance.md - Remove old curl commands (#8761)
landon-lengyel Nov 21, 2024
9e3c387
Update logging-features.md (#8795)
sstults Nov 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ assignees: ''

**Tell us about your request.** Provide a summary of the request.

***Version:** List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
**Version:** List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.

**What other resources are available?** Provide links to related issues, POCs, steps for testing, etc.

2 changes: 2 additions & 0 deletions .github/vale/styles/Vocab/OpenSearch/Words/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ p\d{2}
[Pp]erformant
[Pp]laintext
[Pp]luggable
[Pp]reaggregate(s|d)?
[Pp]recompute(s|d)?
[Pp]reconfigure
[Pp]refetch
[Pp]refilter
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/jekyll-spec-insert.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint and Test Jekyll Spec Insert
on:
push:
paths:
- 'spec-insert/**'
pull_request:
paths:
- 'spec-insert/**'
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with: { ruby-version: 3.3.0 }
- run: bundle install
- working-directory: spec-insert
run: |
bundle exec rubocop
bundle exec rspec
52 changes: 52 additions & 0 deletions .github/workflows/update-api-components.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Update API Components
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # Every Sunday at midnight GMT
jobs:
update-api-components:
if: ${{ github.repository == 'opensearch-project/documentation-website' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- run: git config --global pull.rebase true

- uses: ruby/setup-ruby@v1
with: { ruby-version: 3.3.0 }

- run: bundle install

- name: Download spec and insert into documentation
run: bundle exec jekyll spec-insert

- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: GitHub App token
id: github_app_token
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.github_app_token.outputs.token }}
commit-message: "Updated API components to reflect the latest OpenSearch API spec (${{ env.date }})"
title: "[AUTOCUT] Update API components to reflect the latest OpenSearch API spec (${{ env.date }})"
body: |
Update API components to reflect the latest [OpenSearch API spec](https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml).
Date: ${{ env.date }}
branch: update-api-components-${{ env.date }}
base: main
signoff: true
labels: autocut
19 changes: 18 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Follow these steps to set up your local copy of the repository:

```
curl -sSL https://get.rvm.io | bash -s stable
rvm install 3.2.4
rvm install 3.3.2
ruby -v
```

Expand Down Expand Up @@ -158,6 +158,23 @@ To ensure that our documentation adheres to the [OpenSearch Project Style Guidel

Optionally, you can install the [Vale VSCode](https://github.com/chrischinchilla/vale-vscode) extension, which integrates Vale with Visual Studio Code. By default, only _errors_ and _warnings_ are underlined. To change the minimum alert level to include _suggestions_, go to **Vale VSCode** > **Extension Settings** and select **suggestion** in the **Vale > Vale CLI: Min Alert Level** dropdown list.

## Troubleshooting

This section provides information about potential solutions for known issues.

### Installing Ruby on an Apple silicon machine

If you're having trouble installing Ruby with `rvm` on an Apple silicon machine, it could be because of an OpenSSL version misalignment. To fix this issue, use the following command, replacing `<openssl-version>` with your [desired version](https://github.com/ruby/openssl/blob/master/README.md):

```
# Assumes Brew is installed
curl -sSL https://get.rvm.io | bash -s stable
rvm install 3.2.4 --with-openssl-dir=$(brew --prefix openssl@<openssl-version>)
ruby -v
```

## Getting help

For help with the contribution process, reach out to one of the [points of contact](README.md#points-of-contact).


135 changes: 135 additions & 0 deletions DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Developer guide
- [Introduction](#introduction)
- [Starting the Jekyll server locally](#starting-the-jekyll-server-locally)
- [Using the spec-insert Jekyll plugin](#using-the-spec-insert-jekyll-plugin)
- [Ignoring files and folders](#ignoring-files-and-folders)
- [CI/CD](#cicd)
- [Spec insert components](#spec-insert-components)
- [Query parameters](#query-parameters)
- [Path parameters](#path-parameters)
- [Paths and HTTP methods](#paths-and-http-methods)

## Introduction

The `.md` documents in this repository are rendered into HTML pages using [Jekyll](https://jekyllrb.com/). These HTML pages are hosted on [opensearch.org](https://opensearch.org/docs/latest/).

## Starting the Jekyll server locally
You can run the Jekyll server locally to view the rendered HTML pages using the following steps:

1. Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/) 3.1.0 or later for your operating system.
2. Install the required gems by running `bundle install`.
3. Run `bundle exec jekyll serve` to start the Jekyll server locally (this can take several minutes to complete).
4. Open your browser and navigate to `http://localhost:4000` to view the rendered HTML pages.

## Using the `spec-insert` Jekyll plugin
The `spec-insert` Jekyll plugin is used to insert API components into Markdown files. The plugin downloads the [latest OpenSearch specification](https://github.com/opensearch-project/opensearch-api-specification) and renders the API components from the spec. This aims to reduce the manual effort required to keep the documentation up to date.

To use this plugin, make sure that you have installed Ruby 3.1.0 or later and the required gems by running `bundle install`.

Edit your Markdown file and insert the following snippet where you want render an API component:

```markdown
<!-- spec_insert_start
api: <API_NAME>
component: <COMPONENT_NAME>
other_argument: <OTHER_ARGUMENT>
-->

This is where the API component will be inserted.
Everything between the `spec_insert_start` and `spec_insert_end` tags will be overwritten.

<!-- spec_insert_end -->
```

Then run the following Jekyll command to render the API components:
```shell
bundle exec jekyll spec-insert
```

If you are working on multiple Markdown files and do not want to keep running the `jekyll spec-insert` command, you can add the `--watch` (or `-W`) flag to the command to watch for changes in the Markdown files and automatically render the API components:

```shell
bundle exec jekyll spec-insert --watch
```

Depending on the text editor you are using, you may need to manually reload the file from disk to see the changes applied by the plugin if the editor does not automatically reload the file periodically.

The plugin will pull the newest OpenSearch API spec from its [repository](https://github.com/opensearch-project/opensearch-api-specification) if the spec file does not exist locally or if it is older than 24 hours. To tell the plugin to always pull the newest spec, you can add the `--refresh-spec` (or `-R`) flag to the command:

```shell
bundle exec jekyll spec-insert --refresh-spec
```

### Ignoring files and folders
The `spec-insert` plugin ignores all files and folders listed in the [./_config.yml#exclude](./_config.yml) list, which is also the list of files and folders that Jekyll ignores.

## CI/CD
The `spec-insert` plugin is run as part of the CI/CD pipeline to ensure that the API components are up to date in the documentation. This is performed through the [update-api-components.yml](.github/workflows/update-api-components.yml) GitHub Actions workflow, which creates a pull request containing the updated API components every Sunday.

## Spec insert components
All spec insert components accept the following arguments:
- `api` (String; required): The name of the API to render the component from. This is equivalent to the `x-operation-group` field in the OpenSearch OpenAPI Spec.
- `component` (String; required): The name of the component to render, such as `query_parameters`, `path_parameters`, or `paths_and_http_methods`.
- `omit_header` (Boolean; Default is `false`): If set to `true`, the markdown header of the component will not be rendered.

### Paths and HTTP methods
To insert paths and HTTP methods for the `search` API, use the following snippet:
```markdown
<!-- spec_insert_start
api: search
component: paths_and_http_methods
-->
<!-- spec_insert_end -->
```

### Path parameters

To insert a path parameters table of the `indices.create` API, use the following snippet. Use the `x-operation-group` field from OpenSearch OpenAPI Spec for the `api` value:

```markdown
<!-- spec_insert_start
api: indices.create
component: path_parameters
-->
<!-- spec_insert_end -->
```
This table accepts the same arguments as the query parameters table except the `include_global` argument.

### Query parameters
To insert the API query parameters table of the `cat.indices` API, use the following snippet:
```markdown
<!-- spec_insert_start
api: cat.indices
component: query_parameters
-->
<!-- spec_insert_end -->
```

This will insert the query parameters of the `cat.indices` API into the `.md` file with three default columns: `Parameter`, `Type`, and `Description`. You can customize the query parameters table by adding the `columns` argument which accepts a comma-separated list of column names. The available column names are:

- `Parameter`
- `Type`
- `Description`
- `Required`
- `Default`

_When `Required`/`Default` is not chosen, the information will be written in the `Description` column._

You can also customize this component with the following settings:

- `include_global` (Boolean; default is `false`): Includes global query parameters in the table.
- `include_deprecated` (Boolean; default is `true`): Includes deprecated parameters in the table.
- `pretty` (Boolean; default is `false`): Renders the table in the pretty format instead of the compact format.

The following snippet inserts the specified columns into the query parameters table:

```markdown
<!-- spec_insert_start
api: cat.indices
component: query_parameters
include_global: true
include_deprecated: false
pretty: true
-->
<!-- spec_insert_end -->
```
43 changes: 29 additions & 14 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
source "http://rubygems.org"
# frozen_string_literal: true

source 'https://rubygems.org'

# Manually add csv gem since Ruby 3.4.0 no longer includes it
gem 'csv', '~> 3.0'

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
Expand All @@ -8,12 +13,12 @@ source "http://rubygems.org"
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.3.2"
gem 'jekyll', '~> 4.3.2'

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "just-the-docs", "~> 0.3.3"
gem "jekyll-remote-theme", "~> 0.4"
gem "jekyll-redirect-from", "~> 0.16"
gem 'jekyll-redirect-from', '~> 0.16'
gem 'jekyll-remote-theme', '~> 0.4'
gem 'just-the-docs', '~> 0.3.3'

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
Expand All @@ -22,21 +27,31 @@ gem "jekyll-redirect-from", "~> 0.16"

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-last-modified-at"
gem "jekyll-sitemap"
gem 'jekyll-last-modified-at'
gem 'jekyll-sitemap'
gem 'jekyll-spec-insert', :path => './spec-insert'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?
gem 'wdm', '~> 0.1.0' if Gem.win_platform?

# Installs webrick dependency for building locally
gem "webrick", "~> 1.7"

gem 'webrick', '~> 1.7'

# Link checker
gem "typhoeus"
gem "ruby-link-checker"
gem "ruby-enum"
gem 'ruby-enum'
gem 'ruby-link-checker'
gem 'typhoeus'

# Spec Insert
gem 'activesupport', '~> 7'
gem 'mustache', '~> 1'

group :development, :test do
gem 'rspec'
gem 'rubocop', '~> 1.44', require: false
gem 'rubocop-rake', require: false
end
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# About the OpenSearch documentation repo

The `documentation-website` repository contains the user documentation for OpenSearch. You can find the rendered documentation at [opensearch.org/docs](https://opensearch.org/docs).
The markdown files in this repository are rendered into HTML pages using [Jekyll](https://jekyllrb.com/). Check the [DEVELOPER_GUIDE](DEVELOPER_GUIDE.md) for more information about how to use Jekyll for this repository.


## Contributing
Expand Down
4 changes: 4 additions & 0 deletions TERMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,10 @@ Tools inside of OpenSearch that can be customized to enhance OpenSearch's functi

**pop-up**

**preaggregate**

**precompute**

**premise, premises**

With reference to property and buildings, always form as plural.
Expand Down
1 change: 1 addition & 0 deletions _about/version-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permalink: /version-history/

OpenSearch version | Release highlights | Release date
:--- | :--- | :---
[2.18.0](https://github.com/opensearch-project/opensearch-build/blob/main/release-notes/opensearch-release-notes-2.18.0.md) | Adds a redesigned home page, updated Discover interface, and collaborative workspaces to OpenSearch Dashboards. Includes improvements to ML inference processor and query grouping. Introduces reranking by field and paginated CAT APIs. Includes experimental OpenSearch Dashboards Assistant capabilities. For a full list of release highlights, see the Release Notes. | 05 November 2024
[2.17.1](https://github.com/opensearch-project/opensearch-build/blob/main/release-notes/opensearch-release-notes-2.17.1.md) | Includes bug fixes for ML Commons, anomaly detection, k-NN, and security analytics. Adds various infrastructure and maintenance updates. For a full list of release highlights, see the Release Notes. | 1 October 2024
[2.17.0](https://github.com/opensearch-project/opensearch-build/blob/main/release-notes/opensearch-release-notes-2.17.0.md) | Includes disk-optimized vector search, binary quantization, and byte vector encoding in k-NN. Adds asynchronous batch ingestion for ML tasks. Provides search and query performance enhancements and a new custom trace source in trace analytics. Includes application-based configuration templates. For a full list of release highlights, see the Release Notes. | 17 September 2024
[2.16.0](https://github.com/opensearch-project/opensearch-build/blob/main/release-notes/opensearch-release-notes-2.16.0.md) | Includes built-in byte vector quantization and binary vector support in k-NN. Adds new sort, split, and ML inference search processors for search pipelines. Provides application-based configuration templates and additional plugins to integrate multiple data sources in OpenSearch Dashboards. Includes an experimental Batch Predict ML Commons API. For a full list of release highlights, see the Release Notes. | 06 August 2024
Expand Down
4 changes: 2 additions & 2 deletions _aggregations/bucket/nested.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ GET logs/_search
"aggregations" : {
"pages" : {
"doc_count" : 2,
"min_price" : {
"value" : 200.0
"min_load_time" : {
"value" : 200
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions _analyzers/character-filters/html-character-filter.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
layout: default
title: html_strip character filter
title: HTML strip
parent: Character filters
nav_order: 100
---

# `html_strip` character filter
# HTML strip character filter

The `html_strip` character filter removes HTML tags, such as `<div>`, `<p>`, and `<a>`, from the input text and renders plain text. The filter can be configured to preserve certain tags or decode specific HTML entities, such as `&nbsp;`, into spaces.

Expand Down
Loading
Loading