diff --git a/_aggregations/bucket/geohex-grid.md b/_aggregations/bucket/geohex-grid.md index de11061055..03fd45e369 100644 --- a/_aggregations/bucket/geohex-grid.md +++ b/_aggregations/bucket/geohex-grid.md @@ -5,6 +5,8 @@ parent: Bucket aggregations grand_parent: Aggregations nav_order: 85 redirect_from: + - /opensearch/geohexgrid-agg/ + - /query-dsl/aggregations/geohexgrid-agg/ - /aggregations/geohexgrid/ - /query-dsl/aggregations/geohexgrid/ - /query-dsl/aggregations/bucket/geohex-grid/ diff --git a/_aggregations/bucket/multi-terms.md b/_aggregations/bucket/multi-terms.md index 6fca528b38..62a4d264e0 100644 --- a/_aggregations/bucket/multi-terms.md +++ b/_aggregations/bucket/multi-terms.md @@ -5,6 +5,7 @@ parent: Bucket aggregations grand_parent: Aggregations nav_order: 130 redirect_from: + - /query-dsl/aggregations/bucket/multi-terms/ - /query-dsl/aggregations/multi-terms/ --- diff --git a/_aggregations/bucket/range.md b/_aggregations/bucket/range.md index 61ec2f6276..f4e19f188d 100644 --- a/_aggregations/bucket/range.md +++ b/_aggregations/bucket/range.md @@ -5,6 +5,7 @@ parent: Bucket aggregations grand_parent: Aggregations nav_order: 150 redirect_from: + - /query-dsl/aggregations/bucket/date-range/ - /query-dsl/aggregations/bucket/range/ --- diff --git a/_aggregations/bucket/sampler.md b/_aggregations/bucket/sampler.md index 28bae47b6d..5411052d45 100644 --- a/_aggregations/bucket/sampler.md +++ b/_aggregations/bucket/sampler.md @@ -4,6 +4,8 @@ title: Sampler parent: Bucket aggregations grand_parent: Aggregations nav_order: 170 +redirect_from: + - /query-dsl/aggregations/bucket/diversified-sampler/ --- # Sampler aggregations diff --git a/_aggregations/bucket/significant-terms.md b/_aggregations/bucket/significant-terms.md index 017e3b7dd8..34a4354a73 100644 --- a/_aggregations/bucket/significant-terms.md +++ b/_aggregations/bucket/significant-terms.md @@ -4,6 +4,8 @@ title: Significant terms parent: Bucket aggregations grand_parent: Aggregations nav_order: 180 +redirect_from: + - /query-dsl/aggregations/bucket/significant-terms/ --- # Significant terms aggregations diff --git a/_aggregations/bucket/significant-text.md b/_aggregations/bucket/significant-text.md index 1c136603d6..6f1c7ebeca 100644 --- a/_aggregations/bucket/significant-text.md +++ b/_aggregations/bucket/significant-text.md @@ -4,6 +4,8 @@ title: Significant text parent: Bucket aggregations grand_parent: Aggregations nav_order: 190 +redirect_from: + - /query-dsl/aggregations/bucket/significant-text/ --- # Significant text aggregations diff --git a/_aggregations/bucket/terms.md b/_aggregations/bucket/terms.md index 072ad42cc2..5d05c328d4 100644 --- a/_aggregations/bucket/terms.md +++ b/_aggregations/bucket/terms.md @@ -4,6 +4,8 @@ title: Terms parent: Bucket aggregations grand_parent: Aggregations nav_order: 200 +redirect_from: + - /query-dsl/aggregations/bucket/terms/ --- # Terms aggregations diff --git a/_aggregations/index.md b/_aggregations/index.md index 1c43799a10..385c7a09d8 100644 --- a/_aggregations/index.md +++ b/_aggregations/index.md @@ -6,6 +6,7 @@ nav_order: 5 nav_exclude: true permalink: /aggregations/ redirect_from: + - /query-dsl/aggregations/aggregations/ - /opensearch/aggregations/ - /query-dsl/aggregations/ - /aggregations/index/ diff --git a/_api-reference/analyze-apis.md b/_api-reference/analyze-apis.md index 7c61a6fdcb..10af71c1ad 100644 --- a/_api-reference/analyze-apis.md +++ b/_api-reference/analyze-apis.md @@ -4,6 +4,7 @@ title: Analyze API has_children: true nav_order: 7 redirect_from: + - /api-reference/analyze-apis/perform-text-analysis/ - /opensearch/rest-api/analyze-apis/ - /api-reference/analyze-apis/ --- diff --git a/_api-reference/index-apis/get-settings.md b/_api-reference/index-apis/get-settings.md index 37ac291a77..41eb4ea113 100644 --- a/_api-reference/index-apis/get-settings.md +++ b/_api-reference/index-apis/get-settings.md @@ -4,6 +4,7 @@ title: Get settings parent: Index APIs nav_order: 45 redirect_from: + - /opensearch/rest-api/index-apis/get-settings/ - /opensearch/rest-api/index-apis/get-index/ --- diff --git a/_api-reference/index-apis/index.md b/_api-reference/index-apis/index.md index 4c059b3e48..6e1fdbcfa6 100644 --- a/_api-reference/index-apis/index.md +++ b/_api-reference/index-apis/index.md @@ -4,6 +4,7 @@ title: Index APIs has_children: true nav_order: 35 redirect_from: + - /opensearch/rest-api/index-apis/index/ - /opensearch/rest-api/index-apis/ --- diff --git a/_api-reference/index-apis/put-mapping.md b/_api-reference/index-apis/put-mapping.md index 5f6be9f138..47c47fa125 100644 --- a/_api-reference/index-apis/put-mapping.md +++ b/_api-reference/index-apis/put-mapping.md @@ -4,6 +4,7 @@ title: Create or update mappings parent: Index APIs nav_order: 27 redirect_from: + - /opensearch/rest-api/index-apis/put-mapping/ - /opensearch/rest-api/index-apis/update-mapping/ - /opensearch/rest-api/update-mapping/ --- diff --git a/_benchmark/reference/commands/command-flags.md b/_benchmark/reference/commands/command-flags.md index ca0606f07f..6520f80803 100644 --- a/_benchmark/reference/commands/command-flags.md +++ b/_benchmark/reference/commands/command-flags.md @@ -3,7 +3,8 @@ layout: default title: Command flags nav_order: 51 parent: Command reference -redirect_from: /benchmark/commands/command-flags/ +redirect_from: + - /benchmark/commands/command-flags/ grand_parent: OpenSearch Benchmark Reference --- diff --git a/_benchmark/reference/commands/compare.md b/_benchmark/reference/commands/compare.md index dc7ed2f558..a9eb8bcc10 100644 --- a/_benchmark/reference/commands/compare.md +++ b/_benchmark/reference/commands/compare.md @@ -4,7 +4,8 @@ title: compare nav_order: 55 parent: Command reference grand_parent: OpenSearch Benchmark Reference -redirect_from: /benchmark/commands/compare/ +redirect_from: + - /benchmark/commands/compare/ --- diff --git a/_benchmark/reference/commands/download.md b/_benchmark/reference/commands/download.md index 580e7ef84d..bc29dfd5f7 100644 --- a/_benchmark/reference/commands/download.md +++ b/_benchmark/reference/commands/download.md @@ -4,7 +4,8 @@ title: download nav_order: 60 parent: Command reference grand_parent: OpenSearch Benchmark Reference -redirect_from: /benchmark/commands/download/ +redirect_from: + - /benchmark/commands/download/ --- diff --git a/_benchmark/reference/commands/execute-test.md b/_benchmark/reference/commands/execute-test.md index d8a3e14dbd..82b677d900 100644 --- a/_benchmark/reference/commands/execute-test.md +++ b/_benchmark/reference/commands/execute-test.md @@ -4,7 +4,8 @@ title: execute-test nav_order: 65 parent: Command reference grand_parent: OpenSearch Benchmark Reference -redirect_from: /benchmark/commands/execute-test/ +redirect_from: + - /benchmark/commands/execute-test/ --- diff --git a/_benchmark/reference/commands/info.md b/_benchmark/reference/commands/info.md index c8c20ad110..3bfefabe99 100644 --- a/_benchmark/reference/commands/info.md +++ b/_benchmark/reference/commands/info.md @@ -4,7 +4,8 @@ title: info nav_order: 75 parent: Command reference grand_parent: OpenSearch Benchmark Reference -redirect_from: /benchmark/commands/info/ +redirect_from: + - /benchmark/commands/info/ --- diff --git a/_benchmark/reference/commands/list.md b/_benchmark/reference/commands/list.md index ed10f02a3b..1c51cfa27e 100644 --- a/_benchmark/reference/commands/list.md +++ b/_benchmark/reference/commands/list.md @@ -4,7 +4,8 @@ title: list nav_order: 80 parent: Command reference grand_parent: OpenSearch Benchmark Reference -redirect_from: /benchmark/commands/list/ +redirect_from: + - /benchmark/commands/list/ --- diff --git a/_benchmark/reference/index.md b/_benchmark/reference/index.md index bc7a423b49..4c71443259 100644 --- a/_benchmark/reference/index.md +++ b/_benchmark/reference/index.md @@ -3,6 +3,8 @@ layout: default title: OpenSearch Benchmark Reference nav_order: 25 has_children: true +redirect_from: + - /benchmark/commands/index/ --- # OpenSearch Benchmark Reference diff --git a/_benchmark/reference/metrics/metric-keys.md b/_benchmark/reference/metrics/metric-keys.md index aa45c9d93a..63ad9b6140 100644 --- a/_benchmark/reference/metrics/metric-keys.md +++ b/_benchmark/reference/metrics/metric-keys.md @@ -4,7 +4,8 @@ title: Metric keys nav_order: 35 parent: Metrics reference grand_parent: OpenSearch Benchmark Reference -redirect_from: /benchmark/metrics/metric-keys/ +redirect_from: + - /benchmark/metrics/metric-keys/ --- # Metric keys diff --git a/_benchmark/reference/metrics/metric-records.md b/_benchmark/reference/metrics/metric-records.md index 659f8b82fe..1809401783 100644 --- a/_benchmark/reference/metrics/metric-records.md +++ b/_benchmark/reference/metrics/metric-records.md @@ -4,7 +4,8 @@ title: Metric records nav_order: 30 parent: Metrics reference grand_parent: OpenSearch Benchmark Reference -redirect_from: /benchmark/metrics/metric-records/ +redirect_from: + - /benchmark/metrics/metric-records/ --- # Metric records diff --git a/_benchmark/reference/workloads/corpora.md b/_benchmark/reference/workloads/corpora.md index daa2ae6570..0e8d408e9a 100644 --- a/_benchmark/reference/workloads/corpora.md +++ b/_benchmark/reference/workloads/corpora.md @@ -4,7 +4,8 @@ title: corpora parent: Workload reference grand_parent: OpenSearch Benchmark Reference nav_order: 70 -redirect_from: /benchmark/workloads/corpora/ +redirect_from: + - /benchmark/workloads/corpora/ --- diff --git a/_benchmark/reference/workloads/indices.md b/_benchmark/reference/workloads/indices.md index daaf6101f3..1478179bae 100644 --- a/_benchmark/reference/workloads/indices.md +++ b/_benchmark/reference/workloads/indices.md @@ -4,7 +4,8 @@ title: indices parent: Workload reference grand_parent: OpenSearch Benchmark Reference nav_order: 65 -redirect_from: /benchmark/workloads/indices/ +redirect_from: + - /benchmark/workloads/indices/ --- diff --git a/_benchmark/user-guide/configuring-benchmark.md b/_benchmark/user-guide/configuring-benchmark.md index 4cbf223b39..2be467d587 100644 --- a/_benchmark/user-guide/configuring-benchmark.md +++ b/_benchmark/user-guide/configuring-benchmark.md @@ -3,7 +3,8 @@ layout: default title: Configuring OpenSearch Benchmark nav_order: 7 parent: User guide -redirect_from: /benchmark/configuring-benchmark/ +redirect_from: + - /benchmark/configuring-benchmark/ --- # Configuring OpenSearch Benchmark diff --git a/_benchmark/user-guide/creating-custom-workloads.md b/_benchmark/user-guide/creating-custom-workloads.md index d06610467f..ee0dca1ce9 100644 --- a/_benchmark/user-guide/creating-custom-workloads.md +++ b/_benchmark/user-guide/creating-custom-workloads.md @@ -4,6 +4,7 @@ title: Creating custom workloads nav_order: 10 parent: User guide redirect_from: + - /benchmark/user-guide/creating-custom-workloads/ - /benchmark/creating-custom-workloads/ - /benchmark/user-guide/creating-osb-workloads/ --- diff --git a/_benchmark/user-guide/installing-benchmark.md b/_benchmark/user-guide/installing-benchmark.md index d3387deefb..8383cfb2f9 100644 --- a/_benchmark/user-guide/installing-benchmark.md +++ b/_benchmark/user-guide/installing-benchmark.md @@ -3,7 +3,8 @@ layout: default title: Installing OpenSearch Benchmark nav_order: 5 parent: User guide -redirect_from: /benchmark/installing-benchmark/ +redirect_from: + - /benchmark/installing-benchmark/ --- # Installing OpenSearch Benchmark diff --git a/_dashboards/quickstart.md b/_dashboards/quickstart.md index 358efe4003..82a2b446a5 100644 --- a/_dashboards/quickstart.md +++ b/_dashboards/quickstart.md @@ -4,7 +4,8 @@ title: OpenSearch Dashboards quickstart guide nav_order: 2 has_children: false redirect_from: - - /dashboards/quickstart-dashboards/ + - /dashboards/get-started/quickstart-dashboards/ + - /dashboards/quickstart-dashboards/ --- # OpenSearch Dashboards quickstart guide diff --git a/_dashboards/visualize/maps.md b/_dashboards/visualize/maps.md index 8a4196e483..23e14d41c3 100644 --- a/_dashboards/visualize/maps.md +++ b/_dashboards/visualize/maps.md @@ -5,6 +5,8 @@ grand_parent: Building data visualizations parent: Using coordinate and region maps nav_order: 10 redirect_from: + - /dashboards/maps-plugin/ + - /dashboards/visualize/maps/ - /dashboards/maps/ --- diff --git a/_data-prepper/migrate-open-distro.md b/_data-prepper/migrate-open-distro.md index e7fdacbd8f..8b3e7a7198 100644 --- a/_data-prepper/migrate-open-distro.md +++ b/_data-prepper/migrate-open-distro.md @@ -2,6 +2,8 @@ layout: default title: Migrating from Open Distro nav_order: 30 +redirect_from: + - /clients/data-prepper/migrate-open-distro/ --- # Migrating from Open Distro diff --git a/_data-prepper/migrating-from-logstash-data-prepper.md b/_data-prepper/migrating-from-logstash-data-prepper.md index f87ca8d6be..3d87f29517 100644 --- a/_data-prepper/migrating-from-logstash-data-prepper.md +++ b/_data-prepper/migrating-from-logstash-data-prepper.md @@ -3,6 +3,7 @@ layout: default title: Migrating from Logstash nav_order: 25 redirect_from: + - /clients/data-prepper/configure-logstash-data-prepper/ - /data-prepper/configure-logstash-data-prepper/ --- diff --git a/_getting-started/quickstart.md b/_getting-started/quickstart.md index 62fe92be34..78104b1913 100644 --- a/_getting-started/quickstart.md +++ b/_getting-started/quickstart.md @@ -3,6 +3,7 @@ layout: default title: Installation quickstart nav_order: 3 redirect_from: + - /about/quickstart/ - /opensearch/install/quickstart/ - /quickstart/ --- diff --git a/_im-plugin/data-streams.md b/_im-plugin/data-streams.md index d59526b7b8..c2b1449afc 100644 --- a/_im-plugin/data-streams.md +++ b/_im-plugin/data-streams.md @@ -2,6 +2,8 @@ layout: default title: Data streams nav_order: 13 +redirect_from: + - /opensearch/data-streams/ --- # Data streams diff --git a/_observing-your-data/event-analytics.md b/_observing-your-data/event-analytics.md index b8fe72964c..a41d55c2ff 100644 --- a/_observing-your-data/event-analytics.md +++ b/_observing-your-data/event-analytics.md @@ -3,7 +3,7 @@ layout: default title: Event analytics nav_order: 20 redirect_from: - - /observing-your-data/event-analytics/ + - /observability-plugin/event-analytics/ --- # Event analytics diff --git a/_observing-your-data/log-analytics.md b/_observing-your-data/log-analytics.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/_query-dsl/compound/index.md b/_query-dsl/compound/index.md index d1ad1e26ef..d1051bafa3 100644 --- a/_query-dsl/compound/index.md +++ b/_query-dsl/compound/index.md @@ -5,8 +5,10 @@ has_children: true has_toc: false nav_order: 40 redirect_from: + - /opensearch/query-dsl/compound/index/ - /query-dsl/compound/index/ - /query-dsl/query-dsl/compound/ + - /query-dsl/compound/ --- # Compound queries diff --git a/_query-dsl/geo-and-xy/index.md b/_query-dsl/geo-and-xy/index.md index a1d76f0477..44e2df9b49 100644 --- a/_query-dsl/geo-and-xy/index.md +++ b/_query-dsl/geo-and-xy/index.md @@ -7,6 +7,7 @@ redirect_from: - /opensearch/query-dsl/geo-and-xy/index/ - /query-dsl/query-dsl/geo-and-xy/ - /query-dsl/query-dsl/geo-and-xy/index/ + - /query-dsl/geo-and-xy/ --- # Geographic and xy queries diff --git a/_query-dsl/query-filter-context.md b/_query-dsl/query-filter-context.md index 6985822e03..64d45b8d7b 100644 --- a/_query-dsl/query-filter-context.md +++ b/_query-dsl/query-filter-context.md @@ -3,7 +3,8 @@ layout: default title: Query and filter context nav_order: 5 redirect_from: -- /query-dsl/query-dsl/query-filter-context/ + - /opensearch/query-dsl/query-filter-context/ + - /query-dsl/query-dsl/query-filter-context/ --- # Query and filter context diff --git a/_query-dsl/term-vs-full-text.md b/_query-dsl/term-vs-full-text.md index e5019c4eb2..61d57c67f8 100644 --- a/_query-dsl/term-vs-full-text.md +++ b/_query-dsl/term-vs-full-text.md @@ -3,7 +3,8 @@ layout: default title: Term-level and full-text queries compared nav_order: 10 redirect_from: -- /query-dsl/query-dsl/term-vs-full-text + - /query-dsl/query-dsl/term-vs-full-text/ + - /opensearch/query-dsl/term-vs-full-text/ --- # Term-level and full-text queries compared diff --git a/_query-dsl/term/index.md b/_query-dsl/term/index.md index 594ece3fb5..4a789b0b72 100644 --- a/_query-dsl/term/index.md +++ b/_query-dsl/term/index.md @@ -4,6 +4,9 @@ title: Term-level queries has_children: true has_toc: false nav_order: 20 +redirect_from: + - /opensearch/query-dsl/term/ + - /query-dsl/term/ --- # Term-level queries diff --git a/_search-plugins/neural-sparse-search.md b/_search-plugins/neural-sparse-search.md index fd86b3f6b0..26bcbc8a9c 100644 --- a/_search-plugins/neural-sparse-search.md +++ b/_search-plugins/neural-sparse-search.md @@ -4,6 +4,7 @@ title: Neural sparse search nav_order: 50 has_children: false redirect_from: + - /search-plugins/neural-sparse-search/ - /search-plugins/sparse-search/ --- diff --git a/_search-plugins/sql/identifiers.md b/_search-plugins/sql/identifiers.md index dc9c487c0f..214b2e53cb 100644 --- a/_search-plugins/sql/identifiers.md +++ b/_search-plugins/sql/identifiers.md @@ -4,6 +4,7 @@ title: Identifiers parent: SQL and PPL nav_order: 6 redirect_from: + - /observability-plugin/ppl/identifiers/ - /search-plugins/ppl/identifiers/ --- diff --git a/_search-plugins/sql/ppl/functions.md b/_search-plugins/sql/ppl/functions.md index 7ba18c29a9..275030f723 100644 --- a/_search-plugins/sql/ppl/functions.md +++ b/_search-plugins/sql/ppl/functions.md @@ -5,7 +5,8 @@ parent: PPL grand_parent: SQL and PPL nav_order: 2 redirect_from: - - /search-plugins/ppl/commands/ + - /observability-plugin/ppl/commands/ + - /search-plugins/ppl/commands/ --- # Commands diff --git a/_search-plugins/sql/ppl/syntax.md b/_search-plugins/sql/ppl/syntax.md index 3042902eb4..45eeb3aed2 100644 --- a/_search-plugins/sql/ppl/syntax.md +++ b/_search-plugins/sql/ppl/syntax.md @@ -1,71 +1,71 @@ ---- -layout: default -title: Syntax -parent: PPL -grand_parent: SQL and PPL -nav_order: 1 ---- - -# PPL syntax - -Every PPL query starts with the `search` command. It specifies the index to search and retrieve documents from. Subsequent commands can follow in any order. - -Currently, `PPL` supports only one `search` command, which can be omitted to simplify the query. -{ : .note} - -## Syntax - -```sql -search source= [boolean-expression] -source= [boolean-expression] -``` - -Field | Description | Required -:--- | :--- |:--- -`search` | Specifies search keywords. | Yes -`index` | Specifies which index to query from. | No -`bool-expression` | Specifies an expression that evaluates to a Boolean value. | No - -## Examples - -**Example 1: Search through accounts index** - -In the following example, the `search` command refers to an `accounts` index as the source and uses `fields` and `where` commands for the conditions: - -```sql -search source=accounts -| where age > 18 -| fields firstname, lastname -``` - -In the following examples, angle brackets `< >` enclose required arguments and square brackets `[ ]` enclose optional arguments. -{: .note } - - -**Example 2: Get all documents** - -To get all documents from the `accounts` index, specify it as the `source`: - -```sql -search source=accounts; -``` - -| account_number | firstname | address | balance | gender | city | employer | state | age | email | lastname | -:--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- -| 1 | Amber | 880 Holmes Lane | 39225 | M | Brogan | Pyrami | IL | 32 | amberduke@pyrami.com | Duke -| 6 | Hattie | 671 Bristol Street | 5686 | M | Dante | Netagy | TN | 36 | hattiebond@netagy.com | Bond -| 13 | Nanette | 789 Madison Street | 32838 | F | Nogal | Quility | VA | 28 | null | Bates -| 18 | Dale | 467 Hutchinson Court | 4180 | M | Orick | null | MD | 33 | daleadams@boink.com | Adams - -**Example 3: Get documents that match a condition** - -To get all documents from the `accounts` index that either have `account_number` equal to 1 or have `gender` as `F`, use the following query: - -```sql -search source=accounts account_number=1 or gender=\"F\"; -``` - -| account_number | firstname | address | balance | gender | city | employer | state | age | email | lastname | -:--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- -| 1 | Amber | 880 Holmes Lane | 39225 | M | Brogan | Pyrami | IL | 32 | amberduke@pyrami.com | Duke | -| 13 | Nanette | 789 Madison Street | 32838 | F | Nogal | Quility | VA | 28 | null | Bates | +--- +layout: default +title: Syntax +parent: PPL +grand_parent: SQL and PPL +nav_order: 1 +--- + +# PPL syntax + +Every PPL query starts with the `search` command. It specifies the index to search and retrieve documents from. Subsequent commands can follow in any order. + +Currently, `PPL` supports only one `search` command, which can be omitted to simplify the query. +{ : .note} + +## Syntax + +```sql +search source= [boolean-expression] +source= [boolean-expression] +``` + +Field | Description | Required +:--- | :--- |:--- +`search` | Specifies search keywords. | Yes +`index` | Specifies which index to query from. | No +`bool-expression` | Specifies an expression that evaluates to a Boolean value. | No + +## Examples + +**Example 1: Search through accounts index** + +In the following example, the `search` command refers to an `accounts` index as the source and uses `fields` and `where` commands for the conditions: + +```sql +search source=accounts +| where age > 18 +| fields firstname, lastname +``` + +In the following examples, angle brackets `< >` enclose required arguments and square brackets `[ ]` enclose optional arguments. +{: .note } + + +**Example 2: Get all documents** + +To get all documents from the `accounts` index, specify it as the `source`: + +```sql +search source=accounts; +``` + +| account_number | firstname | address | balance | gender | city | employer | state | age | email | lastname | +:--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- +| 1 | Amber | 880 Holmes Lane | 39225 | M | Brogan | Pyrami | IL | 32 | amberduke@pyrami.com | Duke +| 6 | Hattie | 671 Bristol Street | 5686 | M | Dante | Netagy | TN | 36 | hattiebond@netagy.com | Bond +| 13 | Nanette | 789 Madison Street | 32838 | F | Nogal | Quility | VA | 28 | null | Bates +| 18 | Dale | 467 Hutchinson Court | 4180 | M | Orick | null | MD | 33 | daleadams@boink.com | Adams + +**Example 3: Get documents that match a condition** + +To get all documents from the `accounts` index that either have `account_number` equal to 1 or have `gender` as `F`, use the following query: + +```sql +search source=accounts account_number=1 or gender=\"F\"; +``` + +| account_number | firstname | address | balance | gender | city | employer | state | age | email | lastname | +:--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- +| 1 | Amber | 880 Holmes Lane | 39225 | M | Brogan | Pyrami | IL | 32 | amberduke@pyrami.com | Duke | +| 13 | Nanette | 789 Madison Street | 32838 | F | Nogal | Quility | VA | 28 | null | Bates | diff --git a/_search-plugins/sql/sql/basic.md b/_search-plugins/sql/sql/basic.md index 8878f3bb27..fca14ae870 100644 --- a/_search-plugins/sql/sql/basic.md +++ b/_search-plugins/sql/sql/basic.md @@ -4,7 +4,7 @@ title: Basic Queries parent: SQL grand_parent: SQL and PPL nav_order: 5 -Redirect_from: +redirect_from: - /search-plugins/sql/basic/ --- diff --git a/_search-plugins/sql/sql/complex.md b/_search-plugins/sql/sql/complex.md index c70b965870..ecd52d19c2 100644 --- a/_search-plugins/sql/sql/complex.md +++ b/_search-plugins/sql/sql/complex.md @@ -4,7 +4,7 @@ title: Complex Queries parent: SQL grand_parent: SQL and PPL nav_order: 6 -Redirect_from: +redirect_from: - /search-plugins/sql/complex/ --- diff --git a/_search-plugins/sql/sql/delete.md b/_search-plugins/sql/sql/delete.md index 41cb6705af..eef810e7f5 100644 --- a/_search-plugins/sql/sql/delete.md +++ b/_search-plugins/sql/sql/delete.md @@ -4,7 +4,7 @@ title: Delete parent: SQL grand_parent: SQL and PPL nav_order: 12 -Redirect_from: +redirect_from: - /search-plugins/sql/delete/ --- diff --git a/_search-plugins/sql/sql/functions.md b/_search-plugins/sql/sql/functions.md index 03b808243c..19d29a9143 100755 --- a/_search-plugins/sql/sql/functions.md +++ b/_search-plugins/sql/sql/functions.md @@ -4,8 +4,9 @@ title: Functions parent: SQL grand_parent: SQL and PPL nav_order: 7 -Redirect_from: - - /search-plugins/sql/functions/ +redirect_from: + - /search-plugins/ppl/commands/ + - /observability-plugin/ppl/commands/ --- # Functions diff --git a/_search-plugins/sql/sql/index.md b/_search-plugins/sql/sql/index.md index 7035b6d664..6b2cee24da 100644 --- a/_search-plugins/sql/sql/index.md +++ b/_search-plugins/sql/sql/index.md @@ -7,7 +7,6 @@ has_children: true has_toc: false redirect_from: - /search-plugins/sql/sql/index/ - --- # SQL diff --git a/_security/multi-tenancy/tenant-index.md b/_security/multi-tenancy/tenant-index.md index d4e13ad193..0ed9123ce0 100644 --- a/_security/multi-tenancy/tenant-index.md +++ b/_security/multi-tenancy/tenant-index.md @@ -6,6 +6,7 @@ has_children: true has_toc: false redirect_from: - /security/multi-tenancy/ + - /security-plugin/access-control/multi-tenancy/ --- # OpenSearch Dashboards multi-tenancy diff --git a/_tools/grafana.md b/_tools/grafana.md index 16a899d82e..8f38054303 100644 --- a/_tools/grafana.md +++ b/_tools/grafana.md @@ -3,6 +3,8 @@ layout: default title: Grafana nav_order: 200 has_children: false +redirect_from: + - /clients/grafana/ --- # Grafana support diff --git a/_tools/k8s-operator.md b/_tools/k8s-operator.md index 403aabd631..7ee1c1adee 100644 --- a/_tools/k8s-operator.md +++ b/_tools/k8s-operator.md @@ -3,6 +3,8 @@ layout: default title: OpenSearch Kubernetes Operator nav_order: 80 has_children: false +redirect_from: + - /clients/k8s-operator/ --- The OpenSearch Kubernetes Operator is an open-source kubernetes operator that helps automate the deployment and provisioning of OpenSearch and OpenSearch Dashboards in a containerized environment. The operator can manage multiple OpenSearch clusters that can be scaled up and down depending on your needs. diff --git a/_tools/logstash/read-from-opensearch.md b/_tools/logstash/read-from-opensearch.md index 84d44951e5..53024c233b 100644 --- a/_tools/logstash/read-from-opensearch.md +++ b/_tools/logstash/read-from-opensearch.md @@ -4,7 +4,8 @@ title: Read from OpenSearch parent: Logstash nav_order: 220 redirect_from: - - /clients/logstash/ship-to-opensearch/ + - /clients/logstash/read-from-opensearch/ + - /clients/logstash/ship-to-opensearch/ --- # Read from OpenSearch