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 part of core namespace #1377

Merged
merged 18 commits into from
Jan 9, 2025
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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ This section is for maintaining a changelog for all breaking changes for the cli
### Removed
- Removed the `features` and `shutdown` namespaces as they're not supported by OpenSearch ([#1361](https://github.com/opensearch-project/opensearch-java/pull/1361))
- Removed the `indices.diskUsage` operation as it's not supported by OpenSearch ([#1361](https://github.com/opensearch-project/opensearch-java/pull/1361))
- Removed the `ingest.geoIpStats` operation as it's not supported by OpenSearch ([#]())
- Removed the `ingest.geoIpStats` operation as it's not supported by OpenSearch ([#1375](https://github.com/opensearch-project/opensearch-java/pull/1375))
- Removed the `indices.getUpgrade` and `indices.upgrade` operations as they're not supported by OpenSearch ([#]())
- Removed the `termsEnum` operation as it's not supported by OpenSearch ([#]())

### Fixed
- Fix version and build ([#254](https://github.com/opensearch-project/opensearch-java/pull/254))
Expand Down
127 changes: 126 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
### URL Path Encoding
- The default URL path encoding has been changed to be more conservative. Previously the `!`, `$`, `&`, `'`, `(`, `)`, `*`, `+`, `,`, `;`, `=`, `@` and `:` characters were left un-encoded, they will now be percent-encoded. If you require the previous behavior you can specify the `org.opensearch.path.encoding=HTTP_CLIENT_V4_EQUIV` system property.

### OpenSearchClient & OpenSearchAsyncClient
- The `listAllPit` operation has been replaced by `getAllPits`.

### SearchAfter of SearchRequest type
- Changed SearchAfter of SearchRequest type to FieldValue instead of String ([#769](https://github.com/opensearch-project/opensearch-java/pull/769))
- Consider using `FieldValue.of` to make string type values compatible.
Expand Down Expand Up @@ -436,4 +439,126 @@ After:
- This also affects the associated `InferenceConfig` and `InferenceConfigRegression` classes.

### DocumentSimulation
- The `type` property has been removed as it is no longer supported by OpenSearch.
- The `type` property has been removed as it is no longer supported by OpenSearch.

### CountRequest
- The `minScore` property has been corrected to be of type `Float` instead of `Double`.
- The `routing` property is now of type `List<String>` instead of `String`.
- The `terminateAfter` property is now of type `Integer` instead of `Long`.

### CreatePitRequest
- The `CreatePitRequest` class has been moved from the `org.opensearch.client.opensearch.core.pit` package to the `org.opensearch.client.opensearch.core` package.
- The `targetIndexes` property has been renamed to `index`.
- The `routing` property is now of type `List<String>` instead of `String`.

### CreatePitResponse
- The `CreatePitResponse` class has been moved from the `org.opensearch.client.opensearch.core.pit` package to the `org.opensearch.client.opensearch.core` package.

### DeleteRequest
- The `routing` property is now of type `List<String>` instead of `String`.

### DeletePitRequest
- The `DeletePitRequest` class has been moved from the `org.opensearch.client.opensearch.core.pit` package to the `org.opensearch.client.opensearch.core` package.

### DeletePitResponse
- The `DeletePitResponse` class has been moved from the `org.opensearch.client.opensearch.core.pit` package to the `org.opensearch.client.opensearch.core` package.

### DeletePitRecord renamed to DeletedPit
- The `DeletePitRecord` class has been renamed to `DeletedPit`, this affects:
- `DeletePitResponse`'s `pits` field.

### DeleteByQueryRequest
- The `from` property has been corrected to be of type `Integer` instead of `Long`.
- The `maxDocs` property has been corrected to be of type `Integer` instead of `Long`.
- The `refresh` property has been corrected to be of type `Refresh` instead of `Boolean`.
- The `requestsPerSecond` property has been corrected to be of type `Float` instead of `Long`.
- The `routing` property is now of type `List<String>` instead of `String`.
- The `scrollSize` property has been corrected to be of type `Integer` instead of `Long`.
- The `size` property has been corrected to be of type `Integer` instead of `Long`.
- The `slices` property now accepts a `Slices` union type instead of a `Long`.
- The `terminateAfter` property is now of type `Integer` instead of `Long`.

### DeleteByQueryResponse
- The `batches` property has been corrected to be of type `Integer` instead of `Long`.

### BulkIndexByScrollFailure renamed to BulkByScrollFailure
- The `BulkIndexByScrollFailure` class has been renamed to `BulkByScrollFailure`, this affects:
- `DeleteByQueryResponse`'s `failures` field.
- `ReindexResponse`'s `failures` field.
- `UpdateByQueryResponse`'s `failures` field.

### core.reindex.Source
- The `runtimeMappings` property has been removed as it is not supported by OpenSearch.

### ReindexRequest
- The `maxDocs` property has been corrected to be of type `Integer` instead of `Long`.
- The `refresh` property has been corrected to be of type `Refresh` instead of `Boolean`.
- The `requestsPerSecond` property has been corrected to be of type `Float` instead of `Long`.
- The `size` property has been corrected to be of type `Integer` instead of `Long`.
- The `slices` property now accepts a `Slices` union type instead of a `Long`.

### ReindexResponse
- The `batches` property has been corrected to be of type `Integer` instead of `Long`.
- The `requestsPerSecond` property has been corrected to be of type `Float` instead of `Long`.
- The `throttledMillis` and `throttledUntilMillis` properties have been corrected to be of type `Long` instead of `String`.
- The `took` property has been corrected to be of type `Long` instead of `Time`.

### UpdateByQueryRequest
- The `from` property has been corrected to be of type `Integer` instead of `Long`.
- The `maxDocs` property has been corrected to be of type `Integer` instead of `Long`.
- The `refresh` property has been corrected to be of type `Refresh` instead of `Boolean`.
- The `requestsPerSecond` property has been corrected to be of type `Float` instead of `Long`.
- The `routing` property is now of type `List<String>` instead of `String`.
- The `scrollSize` property has been corrected to be of type `Integer` instead of `Long`.
- The `size` property has been corrected to be of type `Integer` instead of `Long`.
- The `slices` property now accepts a `Slices` union type instead of a `Long`.
- The `terminateAfter` property is now of type `Integer` instead of `Long`.
- The `versionType` property has been removed as it is not supported by OpenSearch.

### UpdateByQueryResponse
- The `batches` property has been corrected to be of type `Integer` instead of `Long`.
- The `throttledMillis` and `throttledUntilMillis` properties have been corrected to be of type `Long` instead of `Number`.

### DeleteByQueryRethrottleRequest
- The `requestsPerSecond` property has been corrected to be of type `Float` instead of `Long`.

### ReindexRethrottleRequest
- The `requestsPerSecond` property has been corrected to be of type `Float` instead of `Long`.

### UpdateByQueryRethrottleRequest
- The `requestsPerSecond` property has been corrected to be of type `Float` instead of `Long`.

### StoredScript
- The `lang` property now accepts a `ScriptLanguage` enum instead of a `String`.

### get_script_languages.LanguageContext
- The `language` property now accepts a `ScriptLanguage` enum instead of a `String`.

### ExistsRequest
- The `refresh` property has been corrected to be of type `Refresh` instead of `Boolean`.
- The `routing` property is now of type `List<String>` instead of `String`.

### ExistsSourceRequest
- The `refresh` property has been corrected to be of type `Refresh` instead of `Boolean`.
- The `routing` property is now of type `List<String>` instead of `String`.

### FieldCapsRequest
- The `runtimeMappings` property has been removed as it is not supported by OpenSearch.

### MtermvectorsRequest
- The `routing` property is now of type `List<String>` instead of `String`.

### RankEvalHitItem
- The `rating` property has been corrected to be of type `Integer` instead of `Double`.

### RankEvalMetricRatingTreshold renamed to RankEvalMetricRatingThreshold
- The `RankEvalMetricRatingTreshold` class has been renamed to `RankEvalMetricRatingThreshold`.:

### RankEvalRequest
- The `searchType` property is now of type `SearchType` instead of `String`.

### RenderSearchTemplateRequest
- The `file` property has been removed as it is not supported by OpenSearch.

### SearchShardsRequest
- The `routing` property is now of type `List<String>` instead of `String`.
4 changes: 2 additions & 2 deletions guides/point_in_time.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ CreatePitRequest createPitRequest = new CreatePitRequest.Builder()
CreatePitResponse createPitResponse = client.createPit(createPitRequest);
```

### List all point in time
### Get all point in time

Returns all PITs in the OpenSearch cluster.

```java
ListAllPitResponse listAllPitResponse = client.listAllPit();
GetAllPitsResponse getAllPitsResponse = client.getAllPits();
```

### Delete point in time
Expand Down
Loading
Loading