mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-68726-master' of https://github.com/sammarshallou/moodle
This commit is contained in:
commit
0cb248077c
2 changed files with 2 additions and 9 deletions
|
@ -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.');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue