MDL-53226 search_simpledb: Refine the patch

- Clumsy fallback only when there is no full-text search support
- Mimic solr tests
- pgsql tokenization using simple configuration
- workaround for mysql '*' search issue
- total results proper calculation
- SQL server FTS support
- Standarize dml full-text search checkings
- Upgrade note about the new dml method
- Set search_simpledb as default engine if no solr config
This commit is contained in:
David Monllao
2018-03-20 18:49:38 +01:00
parent b602463f07
commit c2e970779d
15 changed files with 431 additions and 117 deletions
+9
View File
@@ -1497,4 +1497,13 @@ class pgsql_native_moodle_database extends moodle_database {
private function trim_quotes($str) {
return trim(trim($str), "'\"");
}
/**
* Postgresql supports full-text search indexes.
*
* @return bool
*/
public function is_fulltext_search_supported() {
return true;
}
}