public IndexEs(EnumDefine.EsIndexName indexName, EnumDefine.EsIndexType indexType, object id, T indexObject) { IndexName = indexName; IndexType = indexType; IndexObject = indexObject; Id = id; }
public IndexEs(EnumDefine.EsIndexName indexName, EnumDefine.EsIndexType indexType, object id, object parentId, T indexObject) { IndexName = indexName; IndexType = indexType; IndexObject = indexObject; Id = id; ParentId = parentId; HasParent = true; }
public async Task <string> Search(EnumDefine.EsIndexName indexName, EnumDefine.EsIndexType indexType, string script) { var url = $"{(Url.EndsWith("/") ? $"{Url}{indexName}/{indexType}" : $"{Url}/{indexName}/{indexType}")}/_search".ToLower();