Skip to content

Commit

Permalink
Update batch PDF export to skip working copies (#8292)
Browse files Browse the repository at this point in the history
* Update batch PDF export to skip working copies

* Capitalize boolean operators in lucene query
  • Loading branch information
tylerjmchugh committed Aug 14, 2024
1 parent 4b0e20d commit 79c5769
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ public void exportAsPdf(

final SearchResponse searchResponse = searchManager.query(
String.format(
"uuid:(\"%s\")",
String.join("\" or \"", uuidList)),
"uuid:(\"%s\") AND NOT draft:\"y\"", // Skip working copies as duplicate UUIDs cause the PDF xslt to fail
String.join("\" OR \"", uuidList)),
EsFilterBuilder.buildPermissionsFilter(ApiUtils.createServiceContext(httpRequest)),
searchFieldsForPdf, 0, maxhits);

Expand Down

0 comments on commit 79c5769

Please sign in to comment.