Skip to content

Commit

Permalink
startup time fix - ensure index rather than rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendy committed Apr 13, 2019
1 parent 2be3d53 commit 5c2551d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions src/Our.Umbraco.Look.BackOffice/Client/Views/Searcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,11 @@

<div class="look-body">
<dl>
<dt>Name</dt>
<dd>{{ searcherName }}</dd>

<dt>Description</dt>
<dd>{{ viewData.searcherDescription }}</dd>

<dt>Type</dt>
<dd>{{ viewData.searcherType }}</dd>

<dt>Look Indexing Enabled</dt>
<dd>{{ viewData.lookIndexingEnabled }}</dd>

<dd><span class="{{ viewData.lookIndexingEnabled ? 'icon-checkbox' : 'icon-checkbox-empty' }}">&nbsp;</span></dd>
</dl>

<ng-include src="'/App_Plugins/Look/BackOffice/LookTree/Partials/Matches.html'"></ng-include>
Expand Down
4 changes: 2 additions & 2 deletions src/Our.Umbraco.Look/Events/LookIndexing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplica

LookService.Initialize(this._umbracoHelper);

foreach (var lookIndexer in this._lookIndexers.Where(x => !x.IndexExists()))
foreach (var lookIndexer in this._lookIndexers)
{
lookIndexer.RebuildIndex();
lookIndexer.EnsureIndex(false);
}

ContentService.Published += ContentService_Published;
Expand Down

0 comments on commit 5c2551d

Please sign in to comment.