internal/docs/themes/hugo-theme-learn/static/js/search.js
function search(query) {
    // Find the item in our index corresponding to the lunr one to have more info
    return lunrIndex.search(query).map(function(result) {
            return pagesIndex.filter(function(page) {
                return page.uri === result.ref;
            })[0];
        });
}
function search(query) {
    // Find the item in our index corresponding to the lunr one to have more info
    return lunrIndex.search(query).map(function(result) {
            return pagesIndex.filter(function(page) {
                return page.uri === result.ref;
            })[0];
        });
}
function search ( query ) { // Find the item in our index corresponding to the lunr one to have more info return lunrIndex . search ( query ) . map ( function ( result ) { return pagesIndex . filter ( function ( page ) { return page . uri === result . ref ; } ) [ 0 ] ; } ) ; }
Trigger a search in lunr and transform the result

@param  {String} query
@return {Array}  results
Trigger a search in lunr and transform the result