Skip to content

Commit

Permalink
Merge pull request #2087 from scireum/feature/ymo/SIRI-1054-fs-facet
Browse files Browse the repository at this point in the history
BREAKING: introduce method to buildUnderlyingQueryWithFacets
  • Loading branch information
ymo-sci authored Feb 7, 2025
2 parents f858b48 + a8bdf5a commit 9d971f4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/sirius/biz/web/BasePageHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,20 @@ public Page<E> asPage() {
*
* @return the {@link Query} object
*/
public Q buildUnderlyingQueryWithFacets() {
buildUnderlyingQuery();
applyFacets(null);
return baseQuery;
}

/**
* Returns the underlying query for this page helper.
*
* @return the {@link Query} object
*/
public Q buildUnderlyingQuery() {
String query = getParameterValue("query").getString();
applyQuery(query);

applyFacets(null);
return baseQuery;
}

Expand Down

0 comments on commit 9d971f4

Please sign in to comment.