mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
Set .lucene-index for easier deployments
This commit is contained in:
parent
aacf5d6fe5
commit
1db411eca5
@ -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');
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user