opensearch-project / opensearch-java

Java Client for OpenSearch
Apache License 2.0
106 stars 169 forks source link

[FEATURE] Support text embedding processor #1005

Closed miguel-vila closed 4 weeks ago

miguel-vila commented 1 month ago

Not sure if I missed something in the org.opensearch.client.opensearch.ingest.Processor class, but it seems there's no constructor for the text embedding processor as specified here. But, looking at the OpenAPI spec, it seems it's missing from there as well.

Am I missing something? Does the Java client depend on the OpenAPI spec?

dblock commented 1 month ago

Am I missing something? Does the Java client depend on the OpenAPI spec?

Not yet. We have a PR up for that from @Xtansia and fully expect that to get finished and merged shortly. #366 - Take a look?

dblock commented 1 month ago

But, looking at the OpenAPI spec, it seems it's missing from there as well.

Can you contribute it to the spec? You can also hand-roll the code in opensearch-java for it now if you want it in faster.

miguel-vila commented 1 month ago

here's the spec PR: opensearch-project/opensearch-api-specification#304