diff options
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java b/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java index 1a7074d..e599c5c 100644 --- a/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java +++ b/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java @@ -17,8 +17,7 @@ public final class HibernateFunctionContributor implements FunctionContributor { var functionRegistry = functionContributions.getFunctionRegistry(); functionRegistry - .patternDescriptorBuilder( - "post_matches_websearch", "(?1 @@ websearch_to_tsquery(language_regconfig(?2), ?3))") + .namedDescriptorBuilder("post_matches_websearch") .setInvariantType(typeRegistry.resolve(BOOLEAN)) .setExactArgumentCount(3) .setArgumentListSignature("(STRING searchTerms, STRING language, STRING queryText)") |