Fixes ISearchableTree lifetime registration, fixes routing that clears required query strings, fixes lucene search string, gets URls in search results working with default lang/variants
This commit is contained in:
@@ -234,7 +234,7 @@ namespace Umbraco.Web
|
||||
if (_query != null) return _query.Search(skip, take, out totalRecords, term, useWildCards, indexName);
|
||||
|
||||
indexName = string.IsNullOrEmpty(indexName)
|
||||
? Constants.Examine.ExternalIndexer
|
||||
? Constants.UmbracoIndexes.ExternalIndexName
|
||||
: indexName;
|
||||
|
||||
if (!ExamineManager.Instance.TryGetIndex(indexName, out var index))
|
||||
@@ -264,8 +264,8 @@ namespace Umbraco.Web
|
||||
//fixme: inject IExamineManager
|
||||
if (searcher == null)
|
||||
{
|
||||
if (!ExamineManager.Instance.TryGetIndex(Constants.Examine.ExternalIndexer, out var index))
|
||||
throw new InvalidOperationException($"No index found by name {Constants.Examine.ExternalIndexer}");
|
||||
if (!ExamineManager.Instance.TryGetIndex(Constants.UmbracoIndexes.ExternalIndexName, out var index))
|
||||
throw new InvalidOperationException($"No index found by name {Constants.UmbracoIndexes.ExternalIndexName}");
|
||||
searcher = index.GetSearcher();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user