Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Updates apprenticeship provider search to always include all aggregat…
Browse files Browse the repository at this point in the history
…e types for national providers
  • Loading branch information
Matt Derry committed Aug 14, 2019
1 parent e4df4e0 commit d24b3ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static QueryContainer FilterByDeliveryModes<T>(QueryContainerDescriptor<
{
return aggs => aggs
.Terms(TrainingTypeAggregateName, tt => tt.Field(fi => fi.DeliveryModesKeywords).MinimumDocumentCount(0))
.Terms(NationalProviderAggregateName, tt => tt.Field(fi => fi.NationalProvider));
.Terms(NationalProviderAggregateName, tt => tt.Field(fi => fi.NationalProvider).MinimumDocumentCount(0));
}

private static IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>> GenerateFilters<T>(Expression<Func<T, object>> selector, string apprenticeshipIdentifier, bool showForNonLevyOnly, bool showNationalOnly, List<DeliveryMode> deliveryModes)
Expand Down

0 comments on commit d24b3ff

Please sign in to comment.