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
+10
View File
@@ -2687,4 +2687,14 @@ abstract class moodle_database {
public function perf_get_queries_time() {
return $this->queriestime;
}
/**
* Whether the database is able to support full-text search or not.
*
* @return bool
*/
public function is_fulltext_search_supported() {
// No support unless specified.
return false;
}
}