io.github.sinri.keel.elasticsearch.search.ESSearchMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Keel Show documentation
Show all versions of Keel Show documentation
A website framework with VERT.X for ex-PHP-ers, exactly Ark Framework Users.
The newest version!
package io.github.sinri.keel.elasticsearch.search;
import io.github.sinri.keel.elasticsearch.ESApiMixin;
import io.vertx.core.Future;
import io.vertx.core.json.JsonObject;
public interface ESSearchMixin extends ESApiMixin {
/**
* @see Search API
*/
default Future searchSync(String indexName, ESApiQueries queries, JsonObject requestBody) {
return callPost("/" + indexName + "/_search", queries, requestBody)
.compose(resp -> {
return Future.succeededFuture(new ESSearchResponse(resp));
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy