CRM-14765, CRM14811 - FullText QueryFormatter - Attempt to normalize query text
authorTim Otten <totten@civicrm.org>
Thu, 12 Jun 2014 00:28:52 +0000 (17:28 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 12 Jun 2014 00:46:08 +0000 (17:46 -0700)
commitea74069cd21c5e09a1bf782057430ac1c2e08313
tree67afb0e63c70a28139ce775b00f97e0dbe79b41b
parentcac9c01de1d558cbe9b32940074ce68344ab20be
CRM-14765, CRM14811 - FullText QueryFormatter - Attempt to normalize query text

This introduces a class, CRM_Utils_QueryFormatter, which takes an inputted
query string and converts it to a more specialized query dialect (such as
SQL LIKE, MySQL FTS, or Solr). The exact conversion logic determined
by a setting ("fts_query_mode").
CRM/Contact/Form/Search/Custom/FullText/AbstractPartialQuery.php
CRM/Utils/QueryFormatter.php [new file with mode: 0644]
tests/phpunit/CRM/Utils/QueryFormatterTest.php [new file with mode: 0644]