Skip to content

Commit 18212e6

Browse files
ozobimatalo33
authored andcommitted
Update search.js
fixed indent
1 parent a296946 commit 18212e6

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

static/js/search.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ function initLunr() {
1717
// Set up lunrjs by declaring the fields we use
1818
// Also provide their boost level for the ranking
1919
lunrIndex = lunr(function() {
20-
this.ref("uri");
21-
this.field('title', {
22-
boost: 15
23-
});
24-
this.field('tags', {
25-
boost: 10
26-
});
27-
this.field("content", {
28-
boost: 5
29-
});
20+
this.ref("uri");
21+
this.field('title', {
22+
boost: 15
23+
});
24+
this.field('tags', {
25+
boost: 10
26+
});
27+
this.field("content", {
28+
boost: 5
29+
});
3030

31-
this.pipeline.remove(lunr.stemmer);
32-
this.searchPipeline.remove(lunr.stemmer);
31+
this.pipeline.remove(lunr.stemmer);
32+
this.searchPipeline.remove(lunr.stemmer);
3333

34-
// Feed lunr with each file and let lunr actually index them
35-
pagesIndex.forEach(function(page) {
36-
this.add(page);
37-
}, this);
38-
})
34+
// Feed lunr with each file and let lunr actually index them
35+
pagesIndex.forEach(function(page) {
36+
this.add(page);
37+
}, this);
38+
})
3939
})
4040
.fail(function(jqxhr, textStatus, error) {
4141
var err = textStatus + ", " + error;

0 commit comments

Comments
 (0)