Skip to content

Commit 5c2551d

Browse files
committed
startup time fix - ensure index rather than rebuild
1 parent 2be3d53 commit 5c2551d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/Our.Umbraco.Look.BackOffice/Client/Views/Searcher.html

+1-8
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,11 @@
1818

1919
<div class="look-body">
2020
<dl>
21-
<dt>Name</dt>
22-
<dd>{{ searcherName }}</dd>
23-
24-
<dt>Description</dt>
25-
<dd>{{ viewData.searcherDescription }}</dd>
26-
2721
<dt>Type</dt>
2822
<dd>{{ viewData.searcherType }}</dd>
2923

3024
<dt>Look Indexing Enabled</dt>
31-
<dd>{{ viewData.lookIndexingEnabled }}</dd>
32-
25+
<dd><span class="{{ viewData.lookIndexingEnabled ? 'icon-checkbox' : 'icon-checkbox-empty' }}">&nbsp;</span></dd>
3326
</dl>
3427

3528
<ng-include src="'/App_Plugins/Look/BackOffice/LookTree/Partials/Matches.html'"></ng-include>

src/Our.Umbraco.Look/Events/LookIndexing.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplica
5151

5252
LookService.Initialize(this._umbracoHelper);
5353

54-
foreach (var lookIndexer in this._lookIndexers.Where(x => !x.IndexExists()))
54+
foreach (var lookIndexer in this._lookIndexers)
5555
{
56-
lookIndexer.RebuildIndex();
56+
lookIndexer.EnsureIndex(false);
5757
}
5858

5959
ContentService.Published += ContentService_Published;

0 commit comments

Comments
 (0)