From cc90c354846a7edb8b73c1bf4ad5aa90094a02bc Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 7 Aug 2023 19:46:43 +0200 Subject: HibernateFunctionContributor: Use websearch_to_tsquery database function. Change-Id: I753550e35d911a3adf428a2b789e5b30418248e1 --- .../mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java | 3 +-- 1 file changed, 1 insertion(+), 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)") -- cgit v1.2.3