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

Add wrapper to builder #1

Closed
wants to merge 123 commits into from
Closed

Add wrapper to builder #1

wants to merge 123 commits into from

Conversation

ls-urs-keller
Copy link
Owner

reta and others added 30 commits November 9, 2022 11:46
…#259)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
…te (opensearch-project#306) (opensearch-project#313)

Signed-off-by: Siva <ychnagasivareddy@gmail.com>

Signed-off-by: Siva <ychnagasivareddy@gmail.com>
) (opensearch-project#320)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
…oject#276) (opensearch-project#319)

* Removing unsupported dynamic_templates option

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Update CHANGELOG

Signed-off-by: Vacha Shah <vachshah@amazon.com>

Signed-off-by: Vacha Shah <vachshah@amazon.com>
(cherry picked from commit 52679c3)

Co-authored-by: Vacha Shah <vachshah@amazon.com>
…-project#327)

Signed-off-by: dblock <dblock@amazon.com>

(cherry picked from commit 4165674)

Co-authored-by: Daniel (dB.) Doubrovkine <dblock@amazon.com>
…earch-project#281) (opensearch-project#328)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
…nsearch-project#335)

Signed-off-by: dblock <dblock@amazon.com>

Signed-off-by: dblock <dblock@amazon.com>
(cherry picked from commit 6096034)
Signed-off-by: dblock <dblock@amazon.com>

Signed-off-by: dblock <dblock@amazon.com>
(cherry picked from commit 8c6bac4)

Co-authored-by: Daniel (dB.) Doubrovkine <dblock@amazon.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>

Signed-off-by: Vacha Shah <vachshah@amazon.com>
…opensearch-project#332)

Signed-off-by: dblock <dblock@amazon.com>

(cherry picked from commit 37d4800)

Co-authored-by: Daniel (dB.) Doubrovkine <dblock@amazon.com>
…oject#339) (opensearch-project#344)

* Adding X-Amz-Content-Sha256 header for signed requests

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Adding CHANGELOG entry

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Adding documentation comment

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Adding tests

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Addressing comments

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Addressing comments

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Removing refresh policy for integ tests for Sigv4

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Updating the developer guide

Signed-off-by: Vacha Shah <vachshah@amazon.com>

Signed-off-by: Vacha Shah <vachshah@amazon.com>

Signed-off-by: Vacha Shah <vachshah@amazon.com>
…project#321) (opensearch-project#345)

* Add release workflows

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>

(cherry picked from commit c171531)
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
…pensearch-project#347) (opensearch-project#350)

* Fix issue with completion suggester being parsed as term suggester.

This commit fixes the issue where a completion suggester search request
was being parsed as a term suggester and failing due to "Missing
required property 'TermSuggestOption.score'"

This solution was originally proposed by Github user @apatrida

Signed-off-by: Dan Hart <git@danielhart.me>

* Remove commented code

Signed-off-by: Dan Hart <git@danielhart.me>

* Fix format of changelog item

Signed-off-by: Dan Hart <git@danielhart.me>

Signed-off-by: Dan Hart <git@danielhart.me>
(cherry picked from commit 013d8d7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Dan Hart <git@danielhart.me>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Benoit Tellier <btellier@linagora.com>

Signed-off-by: Benoit Tellier <btellier@linagora.com>
…pensearch-project#358)

* Bulk UpdateOperation misses upsert options



* Fix formatting



---------


(cherry picked from commit fbef578)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pensearch-project#368)

* Upgrading compatibility to opensearch 2.5



* latest 2.4 version



* keep existing compatibility matrix rows, this pr adds a new row for versions of opensearch after 2.3.0



---------


(cherry picked from commit a924a74)

Signed-off-by: amitai stern <123amitai@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
)

* Feature/range aggregation fix 369 (opensearch-project#370)

* test: create integration tests for date_range and range aggregation (opensearch-project#369)

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

* fix: add a missing key propery to the RangeBucket (opensearch-project#369)

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

* docs: add CHANGELOG entry (opensearch-project#369)

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

---------

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>
(cherry picked from commit 99d0e6a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fixing compile errors

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Vacha Shah <vachshah@amazon.com>
…ct#386)

* Refactor two-client usage.



* Avoid double-closing the client on cleanup.



* Refactor constructors to take sync/async explicitly.



* Corrected comments and cleaned up variable naming.




(cherry picked from commit a0ca15c)

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pensearch-project#384)

(cherry picked from commit 75c5e59)

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ensearch-project#385) (opensearch-project#393)

(cherry picked from commit b61467d)

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 9b9ec00)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
…arch-project#394)

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
Co-authored-by: Sayali Gaikawad <61760125+gaiksaya@users.noreply.github.com>
…opensearch-project#400)

(cherry picked from commit 4c2d39d)

Signed-off-by: Ilya Lukyanovich <l000kian@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Increment client version to 2.3.0

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Update COMPATIBILITY.md

Co-authored-by: Andriy Redko <drreta@gmail.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Co-authored-by: Daniel (dB.) Doubrovkine <dblock@dblock.org>
Co-authored-by: Andriy Redko <drreta@gmail.com>
…-client (opensearch-project#403) (opensearch-project#408)

* Bump io.github.classgraph:classgraph in /java-client

Bumps [io.github.classgraph:classgraph](https://github.com/classgraph/classgraph) from 4.8.156 to 4.8.157.
- [Release notes](https://github.com/classgraph/classgraph/releases)
- [Commits](classgraph/classgraph@classgraph-4.8.156...classgraph-4.8.157)

---
updated-dependencies:
- dependency-name: io.github.classgraph:classgraph
  dependency-type: direct:production
  update-type: version-update:semver-patch
...



* Update changelog



---------




(cherry picked from commit 5c444d2)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
…ch-project#410)

(cherry picked from commit aaeb185)

Signed-off-by: luneo7 <luneo7@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
reta and others added 26 commits October 31, 2023 11:41
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
(cherry picked from commit 5b1e295)
…ensearch-project#698) (opensearch-project#699)

* Making Hit.id nullable when storedFields is none



* Adding test to cover storedFields none and replacing deprecated assertThat



* Adding changelog



* spotlessApply



---------


(cherry picked from commit 9baf752)

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: VachaShah <VachaShah@users.noreply.github.com>
…rch-project#704)

* Updating CHANGELOG for next release



* Change to date



---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
…checks (opensearch-project#705) (opensearch-project#707)

(cherry picked from commit b34b8d5)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ct#709) (opensearch-project#714)

* Fixing partial success results for msearch template



* Adding changelog



* Spotless apply



---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
…rch-project#717) (opensearch-project#718)

(cherry picked from commit 87613f3)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
) (opensearch-project#728)

* add icu collation keyword



* add licensing



* update changelog



* update changelog pr



* add support for icu collation options



---------


(cherry picked from commit d8d7a3a)

Signed-off-by: bfindlay <bfindlay@acm.org>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ject#739)

* add flat object support



* add flat object support



* update changelog



* update flatobject and user guides



* fix typo



* remove unused comments



---------


(cherry picked from commit a4dc4f0)

Signed-off-by: bfindlay <bfindlay@acm.org>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ch-project#745) (opensearch-project#751)

* fix stats null issues



* update changelog



* updated changelog



* use existing nodes itest



* fix test typo



* update itests



* spotless apply



---------


(cherry picked from commit 261cab4)

Signed-off-by: bfindlay <bfindlay@acm.org>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…roject#759)

this allows accessing the HTTP status code of the response when an API
returns a `ResponseException`. this was not possible through
`getResponse` since `Response` itself is package-private and thus its
members (even though they are marked as `public`) are not accessible to
external consumers.

solves opensearch-project#749

Signed-off-by: Ralph Ursprung <Ralph.Ursprung@avaloq.com>
(cherry picked from commit 863518c)
…pensearch-project#764)

(cherry picked from commit 1725fc9)

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pensearch-project#768)

* Fix PutIndexTemplateRequest deserialization

Signed-off-by: Matthew Bogner <matt@ibogner.net>

* CHANGELOG.md

Signed-off-by: Matthew Bogner <matt@ibogner.net>

* spotless

Signed-off-by: Matthew Bogner <matt@ibogner.net>

---------

Signed-off-by: Matthew Bogner <matt@ibogner.net>
(cherry picked from commit d4aade4)
) (opensearch-project#776)

* Bump com.diffplug.spotless from 6.23.0 to 6.23.3

Bumps com.diffplug.spotless from 6.23.0 to 6.23.3.

---
updated-dependencies:
- dependency-name: com.diffplug.spotless
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
(cherry picked from commit c7b212b)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…in /java-client (opensearch-project#791) (opensearch-project#793)

* Bump org.apache.httpcomponents.client5:httpclient5 in /java-client

Bumps [org.apache.httpcomponents.client5:httpclient5](https://github.com/apache/httpcomponents-client) from 5.2.3 to 5.3.
- [Changelog](https://github.com/apache/httpcomponents-client/blob/master/RELEASE_NOTES.txt)
- [Commits](apache/httpcomponents-client@rel/v5.2.3...rel/v5.3)

---
updated-dependencies:
- dependency-name: org.apache.httpcomponents.client5:httpclient5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...



* Update changelog



---------




(cherry picked from commit 0a8a3b4)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
…pensearch-project#777)

* Restore support for Java 8 (opensearch-project#767)

* Restore support for Java 8

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

* Address code review comments (update compatibility)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

---------

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
(cherry picked from commit ff5e0a2)

* Update build.gradle.kts to use OpenSearch 2.12.0-SNAPSHOT

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

---------

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
…pensearch-project#781) (opensearch-project#794)

* dummy CHANGELOG.md



* corrected the InnerHits storedFields json field name
to "stored_fields"



* adding correct PR information to CHANGELOG.md



* ran ./gradlew :java-client:spotlessApply



---------


(cherry picked from commit 0729a92)

Signed-off-by: brentam <brentam.dev@gmail.com>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Co-authored-by: brentam <56659702+brentam@users.noreply.github.com>
…ect#766) (opensearch-project#797)

* add toBuilder method on some models (opensearch-project#766)

* add toQuery() on SearchRequest

Signed-off-by: channel-dante <dante@channel.io>

* add toBuilder() on all Request in org.opensearch.client.opensearch.core

Signed-off-by: channel-dante <dante@channel.io>

* add toBuilder() on all Builder in org.opensearch.client.opensearch._types.query_dsl

Signed-off-by: channel-dante <dante@channel.io>

* update CHANGELOG.md

Signed-off-by: channel-dante <dante@channel.io>

* apply spotlessApply

Signed-off-by: channel-dante <dante@channel.io>

* fix CommonTermsQuery.toBuilder()

Signed-off-by: channel-dante <dante@channel.io>

* fix FuzzyQuery.toBuilder()

Signed-off-by: channel-dante <dante@channel.io>

* fix toBuilders

Signed-off-by: channel-dante <dante@channel.io>

* add test for _types/query_dsl package

Signed-off-by: channel-dante <dante@channel.io>

* add test for core package

Signed-off-by: channel-dante <dante@channel.io>

* spotlessApply

Signed-off-by: channel-dante <dante@channel.io>

* fix test

Signed-off-by: channel-dante <dante@channel.io>

* revert ModelTestCase

Signed-off-by: channel-dante <dante@channel.io>

* revert ModelTestCase

Signed-off-by: channel-dante <dante@channel.io>

* add pr link on CHANGELOG.md

Signed-off-by: channel-dante <dante@channel.io>

* add pr link on CHANGELOG.md

Signed-off-by: channel-dante <dante@channel.io>

* apply spotless

Signed-off-by: channel-dante <dante@channel.io>

---------

Signed-off-by: channel-dante <dante@channel.io>

(cherry picked from commit a8fea24)
Signed-off-by: channel-dante <dante@channel.io>

* removed not related test code

Signed-off-by: channel-dante <dante@channel.io>

---------

Signed-off-by: channel-dante <dante@channel.io>
…roject#801)

* rename _toQuery() to toQuery()



* update CHANGELOG.md



* update CHANGELOG.md



---------



(cherry picked from commit b50fdb8)

Signed-off-by: channel-dante <dante@channel.io>
…t#803) (opensearch-project#805)

* Bump org.owasp.dependencycheck from 9.0.7 to 9.0.8

Bumps org.owasp.dependencycheck from 9.0.7 to 9.0.8.

---
updated-dependencies:
- dependency-name: org.owasp.dependencycheck
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 1a5fc11)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
) (opensearch-project#810)

* Bump com.diffplug.spotless from 6.23.3 to 6.24.0

Bumps com.diffplug.spotless from 6.23.3 to 6.24.0.

---
updated-dependencies:
- dependency-name: com.diffplug.spotless
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 955ee71)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…h-project#812) (opensearch-project#813)

* Removing unsupported prefix field from CompletionSuggester



* Add Changelog



---------


(cherry picked from commit d83a2e8)

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…search-project#815)

* Adding OpenSearch 2.11.0 to the matrix



* Updating version



---------


(cherry picked from commit 4647583)

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Urs Keller <urs@ukeller.ch>
Co-authored-by: Urs Keller <urs@ukeller.ch>
@ls-urs-keller ls-urs-keller deleted the 2.x branch January 19, 2024 08:05
@ls-urs-keller ls-urs-keller restored the 2.x branch January 19, 2024 08:06
@ls-urs-keller ls-urs-keller deleted the 2.x branch January 29, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet