public class EsQuery extends Object
public String insert() throws IOException
IOExceptionpublic <T> String insert(T doc) throws IOException
IOExceptionpublic <T> String insertList(List<T> docs) throws IOException
IOExceptionpublic String upsert(String docId) throws IOException
IOExceptionpublic <T> String upsert(String docId, T doc) throws IOException
IOExceptionpublic <T> String upsertList(Map<String,T> docs) throws IOException
IOExceptionpublic EsQuery where(Consumer<EsCondition> condition)
public EsQuery limit(int start, int size)
public EsQuery limit(int size)
public String select(String dsl) throws IOException
IOExceptionpublic String selectJson() throws IOException
IOExceptionpublic String selectJson(String fields) throws IOException
IOExceptionpublic org.noear.snack.ONode selectNode()
throws IOException
IOExceptionpublic org.noear.snack.ONode selectNode(String fields) throws IOException
IOExceptionpublic org.noear.snack.ONode selectAggs()
throws IOException
IOExceptionpublic org.noear.snack.ONode selectAggs(String fields) throws IOException
IOExceptionpublic Map selectMap() throws IOException
IOExceptionpublic Map selectMap(String fields) throws IOException
IOExceptionpublic List<Map> selectMapList() throws IOException
IOExceptionpublic List<Map> selectMapList(String fields) throws IOException
IOExceptionpublic <T> T selectOne(Class<T> clz) throws IOException
IOExceptionpublic <T> T selectOne(Class<T> clz, String fields) throws IOException
IOExceptionpublic <T> EsData<T> selectList(Class<T> clz) throws IOException
IOExceptionpublic <T> EsData<T> selectList(Class<T> clz, String fields) throws IOException
IOExceptionpublic <T> List<T> selectByIds(Class<T> clz, List<String> docIds) throws IOException
IOExceptionpublic <T> T selectById(Class<T> clz, String docId) throws IOException
IOExceptionpublic String delete() throws IOException
IOExceptionpublic boolean deleteById(String docId) throws IOException
IOExceptionCopyright © 2022. All rights reserved.