-
Notifications
You must be signed in to change notification settings - Fork 500
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
Add documentation for constant_keyword
field type
#7235
Conversation
Signed-off-by: Michael Froh <[email protected]>
--- | ||
layout: default | ||
title: Constant Keyword | ||
nav_order: 46 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh -- I probably need to change the nav_order
. This was copied from keyword.md
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msfroh Thanks so much for providing this PR! Yes, nav_order is the order the page appears in the left navigation. And redirect_from is only needed when a page has moved from another location so not needed for new pages.
Signed-off-by: Michael Froh <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kolchfa-aws @msfroh Please see my comments and changes and let me know if you have any questions. Thanks!
|
||
# Constant keyword field type | ||
|
||
A constant keyword field uses the same value for documents in the index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"documents in the index" => "all documents in an index"?
|
||
Parameter | Description | ||
:--- | :--- | ||
`value` | The string value for the field for all documents in the index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"string value for the field" => "field string value"?
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @msfroh To what version(s) is this applicable?
Versions >= 2.14 |
Signed-off-by: kolchfa-aws <[email protected]>
* Add documentation for `constant_keyword` field type Signed-off-by: Michael Froh <[email protected]> * Fix nav_order and bad copy/pasted table entry Signed-off-by: Michael Froh <[email protected]> * Doc review Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _field-types/supported-field-types/string.md Signed-off-by: kolchfa-aws <[email protected]> * Update _field-types/supported-field-types/constant-keyword.md Signed-off-by: kolchfa-aws <[email protected]> --------- Signed-off-by: Michael Froh <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> Co-authored-by: Fanit Kolchina <[email protected]> Co-authored-by: kolchfa-aws <[email protected]> Co-authored-by: Nathan Bower <[email protected]> (cherry picked from commit 7f65cda) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provided example is being rejected by opensearch 2.14.0
"properties" : { | ||
"genre" : { | ||
"value" : "Romantic comedy" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example does not work. The "type" field is missing. It must look something like this:
... "genre" : { "type": "constant_keyword", "value" : "Romantic comedy" } ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Adds documentation for the
constant_keyword
field type added in opensearch-project/OpenSearch#12285.Issues Resolved
Closes #7164
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.