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

[Backport 2.x] Replacing leftover references to OpenSearch #764

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

/**
* Utilities for union types whose discriminant is not directly part of the structure, either as an enclosing property name or as
* an inner property. This is used for Elasticsearch aggregation results and suggesters, using the {@code typed_keys} parameter that
* an inner property. This is used for OpenSearch aggregation results and suggesters, using the {@code typed_keys} parameter that
* encodes a name+type in a single JSON property.
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// typedef: _types.ErrorResponseBase

/**
* The response returned by Elasticsearch when request execution did not
* The response returned by OpenSearch when request execution did not
* succeed.
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
package org.opensearch.client.opensearch._types;

/**
* Exception thrown by API client methods when Elasticsearch could not accept or
* Exception thrown by API client methods when OpenSearch could not accept or
* process a request.
* <p>
* The {@link #error()} contains the error's type and reason along with
Expand All @@ -50,7 +50,7 @@ public OpenSearchException(ErrorResponse response) {
}

/**
* The error response sent by Elasticsearch
* The error response sent by OpenSearch
*/
public ErrorResponse response() {
return this.response;
Expand All @@ -64,7 +64,7 @@ public ErrorCause error() {
}

/**
* Status code returned by Elasticsearch. Shortcut for
* Status code returned by OpenSearch. Shortcut for
* {@code response().status()}.
*/
public int status() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public final ClusterOperatingSystem os() {
}

/**
* Required - Contains statistics about Elasticsearch distributions installed on
* Required - Contains statistics about OpenSearch distributions installed on
* selected nodes.
* <p>
* API name: {@code packaging_types}
Expand Down Expand Up @@ -190,7 +190,7 @@ public final ClusterProcess process() {
}

/**
* Required - Array of Elasticsearch versions used on selected nodes.
* Required - Array of OpenSearch versions used on selected nodes.
* <p>
* API name: {@code versions}
*/
Expand Down Expand Up @@ -446,7 +446,7 @@ public final Builder os(Function<ClusterOperatingSystem.Builder, ObjectBuilder<C
}

/**
* Required - Contains statistics about Elasticsearch distributions installed on
* Required - Contains statistics about OpenSearch distributions installed on
* selected nodes.
* <p>
* API name: {@code packaging_types}
Expand All @@ -459,7 +459,7 @@ public final Builder packagingTypes(List<NodePackagingType> list) {
}

/**
* Required - Contains statistics about Elasticsearch distributions installed on
* Required - Contains statistics about OpenSearch distributions installed on
* selected nodes.
* <p>
* API name: {@code packaging_types}
Expand All @@ -472,7 +472,7 @@ public final Builder packagingTypes(NodePackagingType value, NodePackagingType..
}

/**
* Required - Contains statistics about Elasticsearch distributions installed on
* Required - Contains statistics about OpenSearch distributions installed on
* selected nodes.
* <p>
* API name: {@code packaging_types}
Expand Down Expand Up @@ -541,7 +541,7 @@ public final Builder process(Function<ClusterProcess.Builder, ObjectBuilder<Clus
}

/**
* Required - Array of Elasticsearch versions used on selected nodes.
* Required - Array of OpenSearch versions used on selected nodes.
* <p>
* API name: {@code versions}
* <p>
Expand All @@ -553,7 +553,7 @@ public final Builder versions(List<String> list) {
}

/**
* Required - Array of Elasticsearch versions used on selected nodes.
* Required - Array of OpenSearch versions used on selected nodes.
* <p>
* API name: {@code versions}
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public final Boolean realtime() {
}

/**
* If true, Elasticsearch refreshes the affected shards to make this operation
* If true, OpenSearch refreshes the affected shards to make this operation
* visible to search. If false, do nothing with refreshes.
* <p>
* API name: {@code refresh}
Expand Down Expand Up @@ -382,7 +382,7 @@ public final Builder realtime(@Nullable Boolean value) {
}

/**
* If true, Elasticsearch refreshes the affected shards to make this operation
* If true, OpenSearch refreshes the affected shards to make this operation
* visible to search. If false, do nothing with refreshes.
* <p>
* API name: {@code refresh}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public final Boolean realtime() {
}

/**
* If true, Elasticsearch refreshes the affected shards to make this operation
* If true, OpenSearch refreshes the affected shards to make this operation
* visible to search. If false, do nothing with refreshes.
* <p>
* API name: {@code refresh}
Expand Down Expand Up @@ -379,7 +379,7 @@ public final Builder realtime(@Nullable Boolean value) {
}

/**
* If true, Elasticsearch refreshes the affected shards to make this operation
* If true, OpenSearch refreshes the affected shards to make this operation
* visible to search. If false, do nothing with refreshes.
* <p>
* API name: {@code refresh}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ public final Suggester suggest() {

/**
* Maximum number of documents to collect for each shard. If a query reaches
* this limit, Elasticsearch terminates the query early. Elasticsearch collects
* this limit, OpenSearch terminates the query early. OpenSearch collects
* documents before sorting. Defaults to 0, which does not terminate query
* execution early.
* <p>
Expand Down Expand Up @@ -2027,7 +2027,7 @@ public final Builder suggest(Function<Suggester.Builder, ObjectBuilder<Suggester

/**
* Maximum number of documents to collect for each shard. If a query reaches
* this limit, Elasticsearch terminates the query early. Elasticsearch collects
* this limit, OpenSearch terminates the query early. OpenSearch collects
* documents before sorting. Defaults to 0, which does not terminate query
* execution early.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public final String lang() {
}

/**
* If 'true', Elasticsearch refreshes the affected shards to make this operation
* If 'true', OpenSearch refreshes the affected shards to make this operation
* visible to search, if 'wait_for' then wait for a refresh to make this
* operation visible to search, if 'false' do nothing with refreshes.
* <p>
Expand Down Expand Up @@ -312,7 +312,7 @@ public final Boolean scriptedUpsert() {

/**
* Period to wait for dynamic mapping updates and active shards. This guarantees
* Elasticsearch waits for at least the timeout before failing. The actual wait
* OpenSearch waits for at least the timeout before failing. The actual wait
* time could be longer, particularly when multiple waits occur.
* <p>
* API name: {@code timeout}
Expand Down Expand Up @@ -565,7 +565,7 @@ public final Builder<TDocument, TPartialDocument> lang(@Nullable String value) {
}

/**
* If 'true', Elasticsearch refreshes the affected shards to make this operation
* If 'true', OpenSearch refreshes the affected shards to make this operation
* visible to search, if 'wait_for' then wait for a refresh to make this
* operation visible to search, if 'false' do nothing with refreshes.
* <p>
Expand Down Expand Up @@ -638,7 +638,7 @@ public final Builder<TDocument, TPartialDocument> scriptedUpsert(@Nullable Boole

/**
* Period to wait for dynamic mapping updates and active shards. This guarantees
* Elasticsearch waits for at least the timeout before failing. The actual wait
* OpenSearch waits for at least the timeout before failing. The actual wait
* time could be longer, particularly when multiple waits occur.
* <p>
* API name: {@code timeout}
Expand All @@ -650,7 +650,7 @@ public final Builder<TDocument, TPartialDocument> timeout(@Nullable Time value)

/**
* Period to wait for dynamic mapping updates and active shards. This guarantees
* Elasticsearch waits for at least the timeout before failing. The actual wait
* OpenSearch waits for at least the timeout before failing. The actual wait
* time could be longer, particularly when multiple waits occur.
* <p>
* API name: {@code timeout}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public final FieldNamesField fieldNames() {

/**
* A mapping type can have custom meta data associated with it. These are not
* used at all by Elasticsearch, but can be used to store application-specific
* used at all by OpenSearch, but can be used to store application-specific
* metadata.
* <p>
* API name: {@code _meta}
Expand Down Expand Up @@ -513,7 +513,7 @@ public final Builder fieldNames(Function<FieldNamesField.Builder, ObjectBuilder<

/**
* A mapping type can have custom meta data associated with it. These are not
* used at all by Elasticsearch, but can be used to store application-specific
* used at all by OpenSearch, but can be used to store application-specific
* metadata.
* <p>
* API name: {@code _meta}
Expand All @@ -527,7 +527,7 @@ public final Builder meta(Map<String, JsonData> map) {

/**
* A mapping type can have custom meta data associated with it. These are not
* used at all by Elasticsearch, but can be used to store application-specific
* used at all by OpenSearch, but can be used to store application-specific
* metadata.
* <p>
* API name: {@code _meta}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public final String name() {
}

/**
* Order in which Elasticsearch applies this template if index matches multiple
* Order in which OpenSearch applies this template if index matches multiple
* templates.
* <p>
* Templates with lower 'order' values are merged first. Templates with higher
Expand Down Expand Up @@ -231,7 +231,7 @@ public final Time timeout() {

/**
* Version number used to manage index templates externally. This number is not
* automatically generated by Elasticsearch.
* automatically generated by OpenSearch.
* <p>
* API name: {@code version}
*/
Expand Down Expand Up @@ -497,7 +497,7 @@ public final Builder name(String value) {
}

/**
* Order in which Elasticsearch applies this template if index matches multiple
* Order in which OpenSearch applies this template if index matches multiple
* templates.
* <p>
* Templates with lower 'order' values are merged first. Templates with higher
Expand Down Expand Up @@ -551,7 +551,7 @@ public final Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) {

/**
* Version number used to manage index templates externally. This number is not
* automatically generated by Elasticsearch.
* automatically generated by OpenSearch.
* <p>
* API name: {@code version}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static PutPipelineRequest of(Function<Builder, ObjectBuilder<PutPipelineR

/**
* Optional metadata about the ingest pipeline. May have any contents. This map
* is not automatically generated by Elasticsearch.
* is not automatically generated by OpenSearch.
* <p>
* API name: {@code _meta}
*/
Expand Down Expand Up @@ -281,7 +281,7 @@ public static class Builder extends ObjectBuilderBase implements ObjectBuilder<P

/**
* Optional metadata about the ingest pipeline. May have any contents. This map
* is not automatically generated by Elasticsearch.
* is not automatically generated by OpenSearch.
* <p>
* API name: {@code _meta}
* <p>
Expand All @@ -294,7 +294,7 @@ public final Builder meta(Map<String, JsonData> map) {

/**
* Optional metadata about the ingest pipeline. May have any contents. This map
* is not automatically generated by Elasticsearch.
* is not automatically generated by OpenSearch.
* <p>
* API name: {@code _meta}
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public final List<GeoIpNodeDatabaseName> databases() {

/**
* Required - Downloaded database files, including related license files.
* Elasticsearch stores these files in the node's temporary directory:
* OpenSearch stores these files in the node's temporary directory:
* $ES_TMPDIR/geoip-databases/&lt;node_id&gt;.
* <p>
* API name: {@code files_in_temp}
Expand Down Expand Up @@ -172,7 +172,7 @@ public final Builder databases(Function<GeoIpNodeDatabaseName.Builder, ObjectBui

/**
* Required - Downloaded database files, including related license files.
* Elasticsearch stores these files in the node's temporary directory:
* OpenSearch stores these files in the node's temporary directory:
* $ES_TMPDIR/geoip-databases/&lt;node_id&gt;.
* <p>
* API name: {@code files_in_temp}
Expand All @@ -186,7 +186,7 @@ public final Builder filesInTemp(List<String> list) {

/**
* Required - Downloaded database files, including related license files.
* Elasticsearch stores these files in the node's temporary directory:
* OpenSearch stores these files in the node's temporary directory:
* $ES_TMPDIR/geoip-databases/&lt;node_id&gt;.
* <p>
* API name: {@code files_in_temp}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public final String transportAddress() {
}

/**
* Required - Elasticsearch version running on this node.
* Required - OpenSearch version running on this node.
* <p>
* API name: {@code version}
*/
Expand Down Expand Up @@ -834,7 +834,7 @@ public final Builder transportAddress(String value) {
}

/**
* Required - Elasticsearch version running on this node.
* Required - OpenSearch version running on this node.
* <p>
* API name: {@code version}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public final Time clusterManagerTimeout() {

/**
* Optional metadata for the snapshot. May have any contents. Must be less than
* 1024 bytes. This map is not automatically generated by Elasticsearch.
* 1024 bytes. This map is not automatically generated by OpenSearch.
* <p>
* API name: {@code metadata}
*/
Expand Down Expand Up @@ -473,7 +473,7 @@ public final Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<

/**
* Optional metadata for the snapshot. May have any contents. Must be less than
* 1024 bytes. This map is not automatically generated by Elasticsearch.
* 1024 bytes. This map is not automatically generated by OpenSearch.
* <p>
* API name: {@code metadata}
* <p>
Expand All @@ -486,7 +486,7 @@ public final Builder metadata(Map<String, JsonData> map) {

/**
* Optional metadata for the snapshot. May have any contents. Must be less than
* 1024 bytes. This map is not automatically generated by Elasticsearch.
* 1024 bytes. This map is not automatically generated by OpenSearch.
* <p>
* API name: {@code metadata}
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public final List<String> snapshot() {

/**
* If true, returns additional information about each snapshot such as the
* version of Elasticsearch which took the snapshot, the start and end times of
* version of OpenSearch which took the snapshot, the start and end times of
* the snapshot, and the number of shards snapshotted.
* <p>
* API name: {@code verbose}
Expand Down Expand Up @@ -376,7 +376,7 @@ public final Builder snapshot(String value, String... values) {

/**
* If true, returns additional information about each snapshot such as the
* version of Elasticsearch which took the snapshot, the start and end times of
* version of OpenSearch which took the snapshot, the start and end times of
* the snapshot, and the number of shards snapshotted.
* <p>
* API name: {@code verbose}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
package org.opensearch.client.transport;

/**
* A transport layer that implements Elasticsearch specificities.
* A transport layer that implements OpenSearch specificities.
*
* Currently an empty placeholder for future extension.
*/
Expand Down
Loading