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