Skip to content

Commit

Permalink
[NAE-1909] Elasticsearch index per URI node
Browse files Browse the repository at this point in the history
- fix tests
  • Loading branch information
machacjozef committed Aug 8, 2023
1 parent 9d1b0cd commit 350990f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public Page<Case> search(List<CaseSearchRequest> requests, LoggedUser user, Page
if (query != null) {
SearchHits<ElasticCase> hits = template.search(query, ElasticCase.class, indexCoordinates);
Page<ElasticCase> indexedCases = (Page) SearchHitSupport.unwrapSearchHits(SearchHitSupport.searchPageFor(hits, query.getPageable()));
casePage = workflowService.findAllById(indexedCases.get().map(ElasticCase::getStringId).collect(Collectors.toList()));
casePage = workflowService.findAllById(indexedCases.get().map(ElasticCase::getStringId).distinct().collect(Collectors.toList()));
total = indexedCases.getTotalElements();
} else {
casePage = Collections.emptyList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class FilterApiTest {


@Test
@Disabled
// @Disabled
void testFindFilter() {
Case caze = createMenuItem()
Case filter = getFilter(caze)
Expand Down

0 comments on commit 350990f

Please sign in to comment.