All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.sinri.keel.elasticsearch.search.ESSearchMixin Maven / Gradle / Ivy

Go to download

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