Skip to content

Way to access plugin endpoint while still taking advantage of failover #934

@ashitanojoe

Description

@ashitanojoe

I have started using the langdetect plugin, which defines an endpoint on /_langdetect for querying a string's language.

I would like to be able to perform this request using the Elasticsearch.Net (either low level or high) API, but I can't see that there is any way this can be performed. I found that I could use methods in IElasticClient.Connection, but (as far as I can tell) those methods bypass the failover provided by ElasticClient's Transport.

Is there another way to accomplish what I am trying to do that I missed? Wouldn't making ITransport accessible from IElasticClient make what I want to do possible by giving access to DoRequest<T>? Or perhaps by adding methods to IElasticClient that would call to the raw API?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions