mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-68726-master' of https://github.com/sammarshallou/moodle
This commit is contained in:
commit
0cb248077c
@ -394,6 +394,8 @@ abstract class engine {
|
||||
*/
|
||||
public function optimize() {
|
||||
// Nothing by default.
|
||||
mtrace('The ' . get_string('pluginname', $this->get_plugin_name()) .
|
||||
' search engine does not require automatic optimization.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1203,15 +1203,6 @@ class engine extends \core_search\engine {
|
||||
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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user