Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds query string query documentation #2427

Merged
merged 3 commits into from
Jan 19, 2023
Merged

Conversation

kolchfa-aws
Copy link
Collaborator

Adds query string query documentation

Checklist

  • [x ] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
@kolchfa-aws kolchfa-aws self-assigned this Jan 19, 2023
@kolchfa-aws kolchfa-aws requested a review from a team as a code owner January 19, 2023 13:52
Copy link
Collaborator

@vagimeli vagimeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great writing. Minimal comments. LGTM


## Parameters

Query string query supports the following parameters. All parameters except `query` are optional.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this follow the same format as the first sentence, that is, "query string query?"

`fields` | String array | The list of fields to search (for example, `"fields": ["title^4", "description"]`). Supports wildcards.
`default_field` | String | The field in which to search if the field is not specified in the query string. Supports wildcards. Defaults to the value specified in the `index.query.default_field` index setting. By default, the `index.query.default_field` is `*`, which means extract all fields eligible for term query and filter the metadata fields. The extracted fields are combined into a query if the `prefix` is not specified. Eligible fields do not include nested documents. Searching all eligible fields could be a resource-intensive operation. The `indices.query.bool.max_clause_count` search setting defines the maximum value for the product of the number of fields and the number of terms that can be queried at one time. The default value for `indices.query.bool.max_clause_count` is 4,096.
`allow_leading_wildcard` | Boolean | Specifies whether `*` and `?` are allowed as first characters of a search term. Default is `true`.
`analyze_wildcard` | Boolean | Specifies whether OpenSearch should attempt to analyze wildcard terms. Some analyzers do a poor job at this task, so the default is `false`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we saying that some of OpenSearch analyzers do a poor job? Do we need to qualify why the default is false? Suggestion: Delete the qualifier so the sentence reads "The default is false."

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not find any justification as to why the default is false, so removing the justification.

_opensearch/query-dsl/query-string.md Show resolved Hide resolved
Copy link
Contributor

@hdhalter hdhalter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we say anywhere why they would do this? For example, "You can search your rollup indexes using query string search queries." Or this, taken from the release blog: "OpenSearch users use index rollups to compress older time-series data into summarized indexes, reducing data granularity and offering potential improvements in storage costs and performance. You can use query string queries to search your rollup indexes and find the data you’re looking for."

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
@Naarcha-AWS Naarcha-AWS mentioned this pull request Jan 19, 2023
1 task
@kolchfa-aws
Copy link
Collaborator Author

This PR will be backported to previous versions, so I won't mention rollups here since it's only 2.5 and above. We can add when we enhance this doc in a separate PR

@kolchfa-aws kolchfa-aws added backport 1.3 PR: Backport label for v1.3.x backport 2.0 PR: Backport label for v2.0.x backport 2.1 PR: Backport label for 2.1 backport 2.2 PR: Backport label for 2.2 backport 2.3 PR: Backport label for 2.3 backport 2.4 PR: Backport label for 2.4 labels Jan 19, 2023
@kolchfa-aws kolchfa-aws merged commit a2b3c38 into main Jan 19, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)
kolchfa-aws added a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws added a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws added a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws added a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws added a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws added a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
(cherry picked from commit a2b3c38)

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
vagimeli pushed a commit that referenced this pull request Jan 19, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
vagimeli pushed a commit that referenced this pull request Jan 25, 2023
* Adds query string query documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added a description

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
vagimeli added a commit that referenced this pull request Jan 26, 2023
vagimeli added a commit that referenced this pull request Jan 30, 2023
@Naarcha-AWS Naarcha-AWS deleted the new-query-string-query branch March 28, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.3 PR: Backport label for v1.3.x backport 2.0 PR: Backport label for v2.0.x backport 2.1 PR: Backport label for 2.1 backport 2.2 PR: Backport label for 2.2 backport 2.3 PR: Backport label for 2.3 backport 2.4 PR: Backport label for 2.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants