Esempio n. 1
0
 public IndexEs(EnumDefine.EsIndexName indexName, EnumDefine.EsIndexType indexType, object id, T indexObject)
 {
     IndexName   = indexName;
     IndexType   = indexType;
     IndexObject = indexObject;
     Id          = id;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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();