cn.geektool.es.server.query.AbstractESQuery Maven / Gradle / Ivy
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