Skip to content

Commit ed5ab55

Browse files
authored
Merge pull request #360 from canjs/search-index-version
Bump the search index version
2 parents fdf55ed + 7d4d800 commit ed5ab55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ var Search = Control.extend({
315315
var searchIndexVersionKey = this.formatLocalStorageKey(this.searchIndexVersionLocalStorageKey);
316316
var index = this.getLocalStorageItem(searchIndexKey);
317317
var indexVersion = this.getLocalStorageItem(searchIndexVersionKey);
318-
var currentIndexVersion = 2;// Bump this whenever the index code is changed
318+
var currentIndexVersion = 3;// Bump this whenever the index code is changed
319319

320320
if (index && currentIndexVersion === indexVersion) {
321321
searchEngine = lunr.Index.load(index);

0 commit comments

Comments
 (0)