You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error in the PercolateQueryBuilder constructor after upgrading from version 2.9.0 to version 2.10.0 or higher. There is a code for creating a query:
new PercolateQueryBuilder("query", new BytesArray("""{"code": "%s"}""".formatted(value)), XContentType.JSON)
version 2.10.0 and above, I get an error that there is no constructor that allows to create such a query:
This is most likely due to the fact that right now the PercolateQueryBuilder class uses the import dependency org.opensearch.core.common.bytes.bytes.BytesReference, and the implementation classes use org.opensearch.common.bytes.BytesReference
The text was updated successfully, but these errors were encountered:
NikSV01
changed the title
[BUG] I get an error in the PercolateQueryBuilder constructor after upgrading from version 2.9.0 to version 2.10.0 or higher
[BUG] Get an error in the PercolateQueryBuilder constructor after upgrading from version 2.9.0 to version 2.10.0 or higher
Jan 11, 2024
Describe the bug
I get an error in the PercolateQueryBuilder constructor after upgrading from version 2.9.0 to version 2.10.0 or higher. There is a code for creating a query:
version 2.10.0 and above, I get an error that there is no constructor that allows to create such a query:
Related component
Other
To Reproduce
PercolateQueryBuilder
withString field, BytesReference document, MediaType documentMediaType
params;Expected behavior
There is an implementation of this constructor in the class:
I expect there is no error
Additional Details
This is most likely due to the fact that right now the
PercolateQueryBuilder
class uses the import dependencyorg.opensearch.core.common.bytes.bytes.BytesReference
, and the implementation classes useorg.opensearch.common.bytes.BytesReference
The text was updated successfully, but these errors were encountered: