/// <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); }
/// <summary>生成插入查询</summary> private IIndexRequest UseInsertQuery(IndexDescriptor <TIndexType> descriptor, TIndexType metadata) { descriptor.Type(this.IndexType) .Id(metadata.IIId) ; return(descriptor); }