Skip to content

Commit

Permalink
feat: add default sorting on VCode for beheer zoeken
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintenGreenstack authored and koenmetsu committed Dec 11, 2023
1 parent c24ee3c commit 380988a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace AssociationRegistry.Admin.Api.Verenigingen.Search;
using FluentValidation;
using Infrastructure;
using Infrastructure.Swagger.Annotations;
using Infrastructure.Swagger.Examples;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Nest;
Expand Down Expand Up @@ -98,14 +97,15 @@ private static async Task<ISearchResponse<VerenigingZoekDocument>> Search(
s => s
.From(paginationQueryParams.Offset)
.Size(paginationQueryParams.Limit)
.Sort(x => x.Descending(v => v.VCode))
.Query(
query => query.Bool(
boolQueryDescriptor => boolQueryDescriptor.Must(
queryContainerDescriptor => queryContainerDescriptor.QueryString(
queryStringQueryDescriptor => queryStringQueryDescriptor.Query(q)
)
)
)
)
query => query.Bool(
boolQueryDescriptor => boolQueryDescriptor.Must(
queryContainerDescriptor => queryContainerDescriptor.QueryString(
queryStringQueryDescriptor => queryStringQueryDescriptor.Query(q)
)
)
)
)
);
}

0 comments on commit 380988a

Please sign in to comment.