|
|
@@ -13,7 +13,7 @@ function initLunr() {
|
|
|
// First retrieve the index file
|
|
|
$.getJSON(baseurl +"index.json")
|
|
|
.done(function(index) {
|
|
|
- pagesIndex = index;
|
|
|
+ pagesIndex = index;
|
|
|
// Set up lunrjs by declaring the fields we use
|
|
|
// Also provide their boost level for the ranking
|
|
|
lunrIndex = new lunr.Index
|
|
|
@@ -30,7 +30,9 @@ function initLunr() {
|
|
|
|
|
|
// Feed lunr with each file and let lunr actually index them
|
|
|
pagesIndex.forEach(function(page) {
|
|
|
- lunrIndex.add(page);
|
|
|
+ if (page.tags.indexOf('skipIndexing') == -1) {
|
|
|
+ lunrIndex.add(page);
|
|
|
+ }
|
|
|
});
|
|
|
lunrIndex.pipeline.remove(lunrIndex.stemmer)
|
|
|
})
|