-
Notifications
You must be signed in to change notification settings - Fork 503
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 new default date format #5163
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
995822e
Add new default date format
kolchfa-aws bda13f2
Update _field-types/supported-field-types/date.md
kolchfa-aws 03edad8
Add enabling experimental features section
kolchfa-aws 3d7d3f6
Merge branch 'date-update' of https://github.com/opensearch-project/d…
kolchfa-aws c07e784
Reworded the default sentence
kolchfa-aws File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
layout: default | ||
title: Enabling experimental features | ||
nav_order: 10 | ||
parent: OpenSearch documentation | ||
--- | ||
|
||
# Enabling experimental features | ||
|
||
OpenSearch releases may contain experimental features that you can enable or disable as needed. There are several methods for enabling feature flags, depending on the installation type. | ||
|
||
## Enable in opensearch.yml | ||
|
||
If you are running an OpenSearch cluster and want to enable feature flags in the config file, add the following line to `opensearch.yml`: | ||
|
||
```yaml | ||
opensearch.experimental.feature.<feature_name>.enabled: true | ||
``` | ||
{% include copy.html %} | ||
|
||
## Enable on Docker containers | ||
|
||
If you’re running Docker, add the following line to `docker-compose.yml` under the `opensearch-node` > `environment` section: | ||
|
||
```bash | ||
OPENSEARCH_JAVA_OPTS="-Dopensearch.experimental.feature.<feature_name>.enabled=true" | ||
``` | ||
{% include copy.html %} | ||
|
||
## Enable on a tarball installation | ||
|
||
To enable feature flags on a tarball installation, provide the new JVM parameter either in `config/jvm.options` or `OPENSEARCH_JAVA_OPTS`. | ||
|
||
### Option 1: Modify jvm.options | ||
|
||
Add the following lines to `config/jvm.options` before starting the `opensearch` process to enable the feature and its dependency: | ||
|
||
```bash | ||
-Dopensearch.experimental.feature.<feature_name>.enabled=true | ||
``` | ||
{% include copy.html %} | ||
|
||
Then run OpenSearch: | ||
|
||
```bash | ||
./bin/opensearch | ||
``` | ||
{% include copy.html %} | ||
|
||
### Option 2: Enable with an environment variable | ||
|
||
As an alternative to directly modifying `config/jvm.options`, you can define the properties by using an environment variable. This can be done using a single command when you start OpenSearch or by defining the variable with `export`. | ||
|
||
To add the feature flags inline when starting OpenSearch, run the following command: | ||
|
||
```bash | ||
OPENSEARCH_JAVA_OPTS="-Dopensearch.experimental.feature.<feature_name>.enabled=true" ./opensearch-{{site.opensearch_version}}/bin/opensearch | ||
``` | ||
{% include copy.html %} | ||
|
||
If you want to define the environment variable separately prior to running OpenSearch, run the following commands: | ||
|
||
```bash | ||
export OPENSEARCH_JAVA_OPTS="-Dopensearch.experimental.feature.<feature_name>.enabled=true" | ||
``` | ||
{% include copy.html %} | ||
|
||
```bash | ||
./bin/opensearch | ||
``` | ||
{% include copy.html %} | ||
|
||
## Enable for OpenSearch development | ||
|
||
To enable feature flags for development, you must add the correct properties to `run.gradle` before building OpenSearch. See the [Developer Guide](https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md) for information about to use how Gradle to build OpenSearch. | ||
|
||
Add the following properties to run.gradle to enable the feature: | ||
|
||
```gradle | ||
testClusters { | ||
runTask { | ||
testDistribution = 'archive' | ||
if (numZones > 1) numberOfZones = numZones | ||
if (numNodes > 1) numberOfNodes = numNodes | ||
systemProperty 'opensearch.experimental.feature.<feature_name>.enabled', 'true' | ||
} | ||
} | ||
``` | ||
{% include copy.html %} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 last sentence might be a bit redundant (the default format by default is).
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.
Yes, but there are two options for the default format and one of them is the default one :)