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

cn.geektool.es.server.query.AbstractESQuery Maven / Gradle / Ivy

There is a newer version: 0.0.9
Show newest version
package cn.geektool.es.server.query;

import org.elasticsearch.client.RestHighLevelClient;

/**
 * 扩展查询类
 *
 * @author jiangdi
 * @since 1.0.0
 */
public abstract class AbstractESQuery {

    protected RestHighLevelClient client;

    /**
     * 包装RestHighLevelClient
     *
     * @param client
     */
    public AbstractESQuery(RestHighLevelClient client) {
        this.client = client;
    }

    /**
     * 查询抽象
     *
     * @param queryContext 查询全文
     * @return
     */
    public abstract ESQueryAware query(QueryContext queryContext);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy