Skip to content

Commit

Permalink
Generate part of core namespace (#1377)
Browse files Browse the repository at this point in the history
* Generate clear_score and ignore paths/operations that have been deprecated since OS 1.0

Signed-off-by: Thomas Farr <[email protected]>

* Generate count

Signed-off-by: Thomas Farr <[email protected]>

* Generate create_pit

Signed-off-by: Thomas Farr <[email protected]>

* Generate delete

Signed-off-by: Thomas Farr <[email protected]>

* Generate delete_all_pits & delete_pit

Signed-off-by: Thomas Farr <[email protected]>

* Generate delete_by_query, reindex & update_by_query

Signed-off-by: Thomas Farr <[email protected]>

* Generate delete_by_query_rethrottle, reindex_rethrottle, update_by_query_rethrottle

Signed-off-by: Thomas Farr <[email protected]>

* Generate get_all_pits

Signed-off-by: Thomas Farr <[email protected]>

* Generate delete_script, get_script, get_script_context, get_script_languages & put_script

Signed-off-by: Thomas Farr <[email protected]>

* Generate exists & exists_source

Signed-off-by: Thomas Farr <[email protected]>

* Generate field_caps

Signed-off-by: Thomas Farr <[email protected]>

* Generate mtermvectors

Signed-off-by: Thomas Farr <[email protected]>

* Generate ping

Signed-off-by: Thomas Farr <[email protected]>

* Generate rank_eval

Signed-off-by: Thomas Farr <[email protected]>

* Generate render_search_template

Signed-off-by: Thomas Farr <[email protected]>

* Generate search_shards

Signed-off-by: Thomas Farr <[email protected]>

* Remove terms_enum

Signed-off-by: Thomas Farr <[email protected]>

* Fix build

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia authored Jan 9, 2025
1 parent 1aa832a commit dffa9c9
Show file tree
Hide file tree
Showing 154 changed files with 22,213 additions and 16,687 deletions.
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

0 comments on commit dffa9c9

Please sign in to comment.