diff --git a/app/_config.php b/app/_config.php index 7b7ed3e..2b7e888 100644 --- a/app/_config.php +++ b/app/_config.php @@ -59,3 +59,8 @@ DocumentationSearch::$boost_by_path = array( // Changelogs have heaps of phrases, but are rarely relevant for content searches '/^changelog/' => 0.05 ); + +// Set shared index (avoid issues with different temp paths between CLI and web users) +if(file_exists(BASE_PATH . '/.lucene-index')) { + DocumentationSearch::set_index(BASE_PATH . '/.lucene-index'); +} \ No newline at end of file