Merge branch 'MDL-68726-master' of https://github.com/sammarshallou/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2020-07-21 00:37:03 +02:00
commit 0cb248077c
2 changed files with 2 additions and 9 deletions

View file

@ -394,6 +394,8 @@ abstract class engine {
*/ */
public function optimize() { public function optimize() {
// Nothing by default. // Nothing by default.
mtrace('The ' . get_string('pluginname', $this->get_plugin_name()) .
' search engine does not require automatic optimization.');
} }
/** /**

View file

@ -1203,15 +1203,6 @@ class engine extends \core_search\engine {
return (bool)$this->config->fileindexing; return (bool)$this->config->fileindexing;
} }
/**
* Defragments the index.
*
* @return void
*/
public function optimize() {
$this->get_search_client()->optimize(1, true, false);
}
/** /**
* Deletes the specified document. * Deletes the specified document.
* *