Index: openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-procs.tcl,v
diff -u -r1.41.2.10 -r1.41.2.11
--- openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-procs.tcl 18 Feb 2022 09:29:51 -0000 1.41.2.10
+++ openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-procs.tcl 23 Aug 2022 18:44:55 -0000 1.41.2.11
@@ -292,7 +292,7 @@
ad_proc -private tsearch2::build_query_postgres { -query } {
Convert conjunctions to query characters for tsearch2
- use websearch_to_tsquery which is integrated in postgres >= 11
+ use websearch_to_tsquery which is integrated in postgres >= 11
websearch_to_tsquery creates a tsquery value from querytext using
an alternative syntax in which simple unformatted text is a valid
@@ -303,9 +303,9 @@
- unquoted text: text not inside quote marks will be converted
- to terms separated by & operators, as if processed by plainto_tsquery.
+ to terms separated by & operators, as if processed by plainto_tsquery.
- "quoted text": text inside quote marks will be converted to terms
- separated by <-> operators, as if processed by phraseto_tsquery.
+ separated by <-> operators, as if processed by phraseto_tsquery.
- OR: logical or will be converted to the | operator.
- -: the logical not operator, converted to the ! operator.
@@ -318,7 +318,8 @@
ad_try {
db_1row build_querystring {select websearch_to_tsquery(:query) as query from dual}
} on error {errorMsg} {
- ns_log warning "tsearch2 websearch_to_tsquery failed, fall back to tcl query builder query was: $query errorMsg: $errorMsg"
+ ns_log warning "tsearch2 websearch_to_tsquery failed," \
+ "fall back to tcl query builder query was: $query errorMsg: $errorMsg"
set query [tsearch2::build_query_tcl -query $query]
}
return $query