From 7ee0cd30fa52103ff3fb6e306a48667b6001a285 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 28 Jun 2016 15:10:19 -0700 Subject: [PATCH] CRM_Utils_QueryFormatter - Cleanup, docs --- CRM/Utils/QueryFormatter.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/QueryFormatter.php b/CRM/Utils/QueryFormatter.php index 6c48b1b385..63c48386ba 100644 --- a/CRM/Utils/QueryFormatter.php +++ b/CRM/Utils/QueryFormatter.php @@ -40,9 +40,24 @@ * or in vain. */ class CRM_Utils_QueryFormatter { + /** + * Generate queries using SQL LIKE expressions. + */ const LANG_SQL_LIKE = 'like'; + + /** + * Generate queries using MySQL FTS expressions. + */ const LANG_SQL_FTS = 'fts'; + + /** + * Generate queries using MySQL's boolean FTS expressions. + */ const LANG_SQL_FTSBOOL = 'ftsbool'; + + /** + * Generate queries using Solr expressions. + */ const LANG_SOLR = 'solr'; /** @@ -325,7 +340,6 @@ class CRM_Utils_QueryFormatter { $parts[1] = stristr($parts[1], '.', TRUE); $text = implode(' ', $parts); } - //CRM_Core_Error::debug_var('parseWords $text', $text); //NYSS also replace other occurrences of @ return explode(' ', preg_replace('/[ \r\n\t\@]+/', ' ', trim($text))); -- 2.25.1