Exemple #1
0
 /// <summary>生成部分更新查询</summary>
 private IUpdateRequest <TIndexType, TIndexType> UseUpdateQuery(UpdateDescriptor <TIndexType, TIndexType> descriptor, TIndexType metadata)
 {
     descriptor.Type(this.IndexType)
     .Doc(metadata)
     .DocAsUpsert(true)
     .Upsert(metadata)
     ;
     return(descriptor);
 }
Exemple #2
0
 /// <summary>生成插入查询</summary>
 private IIndexRequest UseInsertQuery(IndexDescriptor <TIndexType> descriptor, TIndexType metadata)
 {
     descriptor.Type(this.IndexType)
     .Id(metadata.IIId)
     ;
     return(descriptor);
 }