Browse Source

fix(workflow): returns resource without suffix keyword

pull/432/head
cKey 4 years ago
parent
commit
410c033483
  1. 8
      aspnet-core/modules/workflow/LINGYUN.Abp.WorkflowCore.Persistence.Elasticsearch/LINGYUN/Abp/WorkflowCore/Persistence/Elasticsearch/ElasticsearchPersistenceProvider.cs

8
aspnet-core/modules/workflow/LINGYUN.Abp.WorkflowCore.Persistence.Elasticsearch/LINGYUN/Abp/WorkflowCore/Persistence/Elasticsearch/ElasticsearchPersistenceProvider.cs

@ -163,7 +163,7 @@ namespace LINGYUN.Abp.WorkflowCore.Persistence.Elasticsearch
var response = await client.SearchAsync<Event>( var response = await client.SearchAsync<Event>(
dsl => dsl.Index(CreateIndex(PersistenceIndexConsts.EventIndex)) dsl => dsl.Index(CreateIndex(PersistenceIndexConsts.EventIndex))
.Query(q => q.Bool(b => b.Filter(terms))) .Query(q => q.Bool(b => b.Filter(terms)))
.Source(s => s.Includes(e => e.Field(f => f.Id.Suffix("keyword")))), .Source(s => s.Includes(e => e.Field(f => f.Id))),
ct: cancellationToken); ct: cancellationToken);
CheckResponse(response); CheckResponse(response);
@ -185,7 +185,7 @@ namespace LINGYUN.Abp.WorkflowCore.Persistence.Elasticsearch
var response = await client.SearchAsync<EventSubscription>( var response = await client.SearchAsync<EventSubscription>(
dsl => dsl.Index(CreateIndex(PersistenceIndexConsts.EventSubscriptionIndex)) dsl => dsl.Index(CreateIndex(PersistenceIndexConsts.EventSubscriptionIndex))
.Query(q => q.Bool(b => b.Filter(terms))) .Query(q => q.Bool(b => b.Filter(terms)))
.Source(s => s.Includes(e => e.Field(f => f.Id.Suffix("keyword")))) .Source(s => s.Includes(e => e.Field(f => f.Id)))
.Sort(s => s.Field(f => f.SubscribeAsOf, SortOrder.Ascending)) .Sort(s => s.Field(f => f.SubscribeAsOf, SortOrder.Ascending))
.Take(1), .Take(1),
ct: cancellationToken); ct: cancellationToken);
@ -208,7 +208,7 @@ namespace LINGYUN.Abp.WorkflowCore.Persistence.Elasticsearch
var response = await client.SearchAsync<Event>( var response = await client.SearchAsync<Event>(
dsl => dsl.Index(CreateIndex(PersistenceIndexConsts.EventIndex)) dsl => dsl.Index(CreateIndex(PersistenceIndexConsts.EventIndex))
.Query(q => q.Bool(b => b.Filter(terms))) .Query(q => q.Bool(b => b.Filter(terms)))
.Source(s => s.Includes(e => e.Field(f => f.Id.Suffix("keyword")))), .Source(s => s.Includes(e => e.Field(f => f.Id))),
ct: cancellationToken); ct: cancellationToken);
CheckResponse(response); CheckResponse(response);
@ -229,7 +229,7 @@ namespace LINGYUN.Abp.WorkflowCore.Persistence.Elasticsearch
var response = await client.SearchAsync<WorkflowInstance>( var response = await client.SearchAsync<WorkflowInstance>(
dsl => dsl.Index(CreateIndex(PersistenceIndexConsts.WorkflowInstanceIndex)) dsl => dsl.Index(CreateIndex(PersistenceIndexConsts.WorkflowInstanceIndex))
.Query(q => q.Bool(b => b.Filter(terms))) .Query(q => q.Bool(b => b.Filter(terms)))
.Source(s => s.Includes(e => e.Field(f => f.Id.Suffix("keyword")))), .Source(s => s.Includes(e => e.Field(f => f.Id))),
ct: cancellationToken); ct: cancellationToken);
CheckResponse(response); CheckResponse(response);

Loading…
Cancel
Save