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

Generate search pipeline requests #1442

Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ This section is for maintaining a changelog for all breaking changes for the cli

## [Unreleased 2.x]
### Added
- Added support for the Search Pipeline APIs ([#1442](https://github.com/opensearch-project/opensearch-java/pull/1442))

### Dependencies

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
import org.opensearch.client.opensearch.ingest.OpenSearchIngestAsyncClient;
import org.opensearch.client.opensearch.ml.OpenSearchMlAsyncClient;
import org.opensearch.client.opensearch.nodes.OpenSearchNodesAsyncClient;
import org.opensearch.client.opensearch.search_pipeline.OpenSearchSearchPipelineAsyncClient;
import org.opensearch.client.opensearch.snapshot.OpenSearchSnapshotAsyncClient;
import org.opensearch.client.opensearch.tasks.OpenSearchTasksAsyncClient;
import org.opensearch.client.transport.OpenSearchTransport;
Expand Down Expand Up @@ -147,6 +148,10 @@ public OpenSearchNodesAsyncClient nodes() {
return new OpenSearchNodesAsyncClient(this.transport, this.transportOptions);
}

public OpenSearchSearchPipelineAsyncClient searchPipeline() {
return new OpenSearchSearchPipelineAsyncClient(this.transport, this.transportOptions);
}

public OpenSearchSnapshotAsyncClient snapshot() {
return new OpenSearchSnapshotAsyncClient(this.transport, this.transportOptions);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
import org.opensearch.client.opensearch.ingest.OpenSearchIngestClient;
import org.opensearch.client.opensearch.ml.OpenSearchMlClient;
import org.opensearch.client.opensearch.nodes.OpenSearchNodesClient;
import org.opensearch.client.opensearch.search_pipeline.OpenSearchSearchPipelineClient;
import org.opensearch.client.opensearch.snapshot.OpenSearchSnapshotClient;
import org.opensearch.client.opensearch.tasks.OpenSearchTasksClient;
import org.opensearch.client.transport.OpenSearchTransport;
Expand Down Expand Up @@ -146,6 +147,10 @@ public OpenSearchNodesClient nodes() {
return new OpenSearchNodesClient(this.transport, this.transportOptions);
}

public OpenSearchSearchPipelineClient searchPipeline() {
return new OpenSearchSearchPipelineClient(this.transport, this.transportOptions);
}

public OpenSearchSnapshotClient snapshot() {
return new OpenSearchSnapshotClient(this.transport, this.transportOptions);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ public final List<String> index() {
}

/**
* Controls the amount of detail included in the cluster health response.
* <p>
* API name: {@code level}
* </p>
*/
@Nullable
public final ClusterHealthLevel level() {
Expand Down Expand Up @@ -500,7 +503,10 @@ public final Builder index(String value, String... values) {
}

/**
* Controls the amount of detail included in the cluster health response.
* <p>
* API name: {@code level}
* </p>
*/
@Nonnull
public final Builder level(@Nullable ClusterHealthLevel value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,11 @@ public final Map<String, JsonData> meta() {

/**
* Required - The name of the component template to create. OpenSearch includes the following built-in component templates:
* <code>logs-mappings</code>;
* 'logs-settings<code>; </code>metrics-mappings<code>; </code>metrics-settings<code>;</code>synthetics-mapping<code>; </code>synthetics-settings<code>. OpenSearch uses these templates to configure backing indexes for its data streams. If you want to overwrite one of these templates, set the replacement template </code>version<code>to a higher value than the current version. If you want to disable all built-in component and index templates, set</code>stack.templates.enabled<code>to</code>false`
* using the Cluster Update Settings API.
* <code>logs-mappings</code>; <code>logs-settings</code>; <code>metrics-mappings</code>; <code>metrics-settings</code>;
* <code>synthetics-mapping</code>; <code>synthetics-settings</code>. OpenSearch uses these templates to configure backing indexes for
* its data streams. If you want to overwrite one of these templates, set the replacement template <code>version</code> to a higher
* value than the current version. If you want to disable all built-in component and index templates, set
* <code>stack.templates.enabled</code> to <code>false</code> using the Cluster Update Settings API.
* <p>
* API name: {@code name}
* </p>
Expand Down Expand Up @@ -446,9 +448,11 @@ public final Builder meta(String key, JsonData value) {

/**
* Required - The name of the component template to create. OpenSearch includes the following built-in component templates:
* <code>logs-mappings</code>;
* 'logs-settings<code>; </code>metrics-mappings<code>; </code>metrics-settings<code>;</code>synthetics-mapping<code>; </code>synthetics-settings<code>. OpenSearch uses these templates to configure backing indexes for its data streams. If you want to overwrite one of these templates, set the replacement template </code>version<code>to a higher value than the current version. If you want to disable all built-in component and index templates, set</code>stack.templates.enabled<code>to</code>false`
* using the Cluster Update Settings API.
* <code>logs-mappings</code>; <code>logs-settings</code>; <code>metrics-mappings</code>; <code>metrics-settings</code>;
* <code>synthetics-mapping</code>; <code>synthetics-settings</code>. OpenSearch uses these templates to configure backing indexes
* for its data streams. If you want to overwrite one of these templates, set the replacement template <code>version</code> to a
* higher value than the current version. If you want to disable all built-in component and index templates, set
* <code>stack.templates.enabled</code> to <code>false</code> using the Cluster Update Settings API.
* <p>
* API name: {@code name}
* </p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@

// typedef: cluster.health.Level

/**
* Controls the amount of detail included in the cluster health response.
*/
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public enum ClusterHealthLevel implements JsonEnum {
Expand Down
Loading
Loading