Skip to content

Commit

Permalink
Remove unused exception
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHarbo committed Jul 24, 2023
1 parent 821ef32 commit d348ff6
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,6 @@ public static InputStream exportFields(
public static StreamingOutput exportZipContent(String query, String... filterQueries)
throws SolrServerException, IOException, InvalidArgumentServiceException {

if (Arrays.stream(filterQueries).noneMatch(filter -> filter.contains("content_type_norm"))){
throw new InvalidArgumentServiceException("A filter query for content_type_norm needs to be applied.");
}


// Validate result set size
long results = NetarchiveSolrClient.getInstance().countResults(query, filterQueries);
log.info("Found '{}' results for query: '{}', with filters '{}'.", results, query, filterQueries);
Expand Down

0 comments on commit d348ff6

Please sign in to comment.