index.js
function () {
    addCacheItem(params.context.page);
    params.context.lunr = params.context.lunr || {};
    params.context.lunr.dataPath = params.context.lunr.dataPath || 'search_index.json';
  }
function () {
    addCacheItem(params.context.page);
    params.context.lunr = params.context.lunr || {};
    params.context.lunr.dataPath = params.context.lunr.dataPath || 'search_index.json';
  }
function ( ) { addCacheItem ( params . context . page ) ; params . context . lunr = params . context . lunr || { } ; params . context . lunr . dataPath = params . context . lunr . dataPath || 'search_index.json' ; }
call before each page is rendered to get information from the context
call before each page is rendered to get information from the context