U4-9335 UmbracoExamine needs to ignore the useTempStorage option if an IDirectoryFactory config option is supplied by the indexer

This commit is contained in:
Shannon
2017-01-03 19:39:34 +11:00
parent b9c90af8be
commit 53bbc5f922
2 changed files with 4 additions and 2 deletions

View File

@@ -162,7 +162,8 @@ namespace UmbracoExamine
base.Initialize(name, config);
if (config["useTempStorage"] != null)
//detect if a dir factory has been specified, if so then useTempStorage will not be used (deprecated)
if (config["directoryFactory"] == null && config["useTempStorage"] != null)
{
var fsDir = base.GetLuceneDirectory() as FSDirectory;
if (fsDir != null)

View File

@@ -73,7 +73,8 @@ namespace UmbracoExamine
base.Initialize(name, config);
if (config != null && config["useTempStorage"] != null)
//detect if a dir factory has been specified, if so then useTempStorage will not be used (deprecated)
if (config != null && config["directoryFactory"] == null && config["useTempStorage"] != null)
{
//Use the temp storage directory which will store the index in the local/codegen folder, this is useful
// for websites that are running from a remove file server and file IO latency becomes an issue