SearchClient

constructor(restClient: RestClient = KtorRestClient(), json: Json = DEFAULT_JSON)

Parameters

restClient

rest client configured to talk to your search engine. Defaults to KtorRestClient configured to talk to localhost:9200.

json

kotlinx.serialization Json used to deserialize responses. Defaults to DEFAULT_JSON which is configured with some sane defaults.