diff --git a/pd/nw/dialog_search.html b/pd/nw/dialog_search.html index c882574b61da563435bc255c2a93365b73bf625e..0d49f09f64dcbe6d39f153169dcdd016f25e2b3e 100644 --- a/pd/nw/dialog_search.html +++ b/pd/nw/dialog_search.html @@ -858,7 +858,13 @@ function doc_search() { clear_results(); text_elem.blur(); toc_bookmark_status(false); - results = index.search(search_text); + results = index.search(search_text, { + fields: { + title: {boost: 64, expand: true}, + keywords: {boost: 8, expand: true}, + description: {boost: 1} + } + }); for (i = 0; i < results.length; i++) { doc = index.documentStore.getDoc(results[i].ref); display_doc(doc);