diff --git a/src/UmbracoExamine/LocalStorage/LocalTempStorageIndexer.cs b/src/UmbracoExamine/LocalStorage/LocalTempStorageIndexer.cs index 2075a0f786..f4642eb0cd 100644 --- a/src/UmbracoExamine/LocalStorage/LocalTempStorageIndexer.cs +++ b/src/UmbracoExamine/LocalStorage/LocalTempStorageIndexer.cs @@ -44,7 +44,7 @@ namespace UmbracoExamine.LocalStorage public void Initialize(NameValueCollection config, string configuredPath, FSDirectory baseLuceneDirectory, Analyzer analyzer, LocalStorageType localStorageType) { //this is the default - ILocalStorageDirectory localStorateDir = new CodeGenLocalStorageDirectory(); + ILocalStorageDirectory localStorageDir = new CodeGenLocalStorageDirectory(); if (config["tempStorageDirectory"] != null) { //try to get the type @@ -53,7 +53,7 @@ namespace UmbracoExamine.LocalStorage { try { - localStorateDir = (ILocalStorageDirectory)Activator.CreateInstance(dirType); + localStorageDir = (ILocalStorageDirectory)Activator.CreateInstance(dirType); } catch (Exception ex) { @@ -64,8 +64,8 @@ namespace UmbracoExamine.LocalStorage } } - var tempPath = localStorateDir.GetLocalStorageDirectory(config, configuredPath); - if (tempPath == null) throw new InvalidOperationException("Could not resolve a temp location from the " + localStorateDir.GetType() + " specified"); + var tempPath = localStorageDir.GetLocalStorageDirectory(config, configuredPath); + if (tempPath == null) throw new InvalidOperationException("Could not resolve a temp location from the " + localStorageDir.GetType() + " specified"); TempPath = tempPath.FullName; switch (localStorageType) diff --git a/src/UmbracoExamine/UmbracoExamineSearcher.cs b/src/UmbracoExamine/UmbracoExamineSearcher.cs index 60eeb6a02f..acbfefb180 100644 --- a/src/UmbracoExamine/UmbracoExamineSearcher.cs +++ b/src/UmbracoExamine/UmbracoExamineSearcher.cs @@ -81,7 +81,7 @@ namespace UmbracoExamine if (attemptUseTempStorage) { //this is the default - ILocalStorageDirectory localStorateDir = new CodeGenLocalStorageDirectory(); + ILocalStorageDirectory localStorageDir = new CodeGenLocalStorageDirectory(); if (config["tempStorageDirectory"] != null) { //try to get the type @@ -90,7 +90,7 @@ namespace UmbracoExamine { try { - localStorateDir = (ILocalStorageDirectory)Activator.CreateInstance(dirType); + localStorageDir = (ILocalStorageDirectory)Activator.CreateInstance(dirType); } catch (Exception ex) { @@ -102,8 +102,8 @@ namespace UmbracoExamine } var indexSet = IndexSets.Instance.Sets[IndexSetName]; var configuredPath = indexSet.IndexPath; - var tempPath = localStorateDir.GetLocalStorageDirectory(config, configuredPath); - if (tempPath == null) throw new InvalidOperationException("Could not resolve a temp location from the " + localStorateDir.GetType() + " specified"); + var tempPath = localStorageDir.GetLocalStorageDirectory(config, configuredPath); + if (tempPath == null) throw new InvalidOperationException("Could not resolve a temp location from the " + localStorageDir.GetType() + " specified"); _localTempPath = tempPath.FullName; _localStorageType = attemptUseTempStorage.Result; }