Skip to content

Commit

Permalink
Merge pull request #391 from ncats/bulk_search_facet
Browse files Browse the repository at this point in the history
cross_entity_search
  • Loading branch information
narchana authored Feb 27, 2025
2 parents 710af09 + a29b9d2 commit aca08c3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -117,7 +118,7 @@ public void testBulkSearchWithNonIdenfifiers() throws IOException, InterruptedEx
assertEquals(searchContent.getResultsAsList().size(),9);


BulkQuerySummary summary = (BulkQuerySummary)cache.getRaw("BulkSearchSummary/"+request.computeKey(false));
BulkQuerySummary summary = (BulkQuerySummary)cache.getRaw("BulkSearchSummary/"+request.computeKey(false,new ArrayList<String>()));


List<String> queriesInResult = summary.getQueries().stream().map(r->r.getSearchTerm()).collect(Collectors.toList());
Expand Down Expand Up @@ -153,7 +154,7 @@ public void testBulkSearchWithIdenfifiers() throws IOException, InterruptedExcep

assertEquals(searchContent.getResultsAsList().size(),3);

BulkQuerySummary summary = (BulkQuerySummary)cache.getRaw("BulkSearchSummary/"+request.computeKey(false));
BulkQuerySummary summary = (BulkQuerySummary)cache.getRaw("BulkSearchSummary/"+request.computeKey(false, new ArrayList<String>()));
List<String> queriesInResult = summary.getQueries().stream().map(r->r.getSearchTerm()).collect(Collectors.toList());

assertEquals(queries.size(),queriesInResult.size());
Expand Down

0 comments on commit aca08c3

Please sign in to comment.