File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,25 @@ function initLunr() {
1717 // Set up lunrjs by declaring the fields we use
1818 // Also provide their boost level for the ranking
1919 lunrIndex = lunr ( function ( ) {
20- this . ref ( "uri" ) ;
21- this . field ( 'title' , {
22- boost : 15
23- } ) ;
24- this . field ( 'tags' , {
25- boost : 10
26- } ) ;
27- this . field ( "content" , {
28- boost : 5
29- } ) ;
20+ this . ref ( "uri" ) ;
21+ this . field ( 'title' , {
22+ boost : 15
23+ } ) ;
24+ this . field ( 'tags' , {
25+ boost : 10
26+ } ) ;
27+ this . field ( "content" , {
28+ boost : 5
29+ } ) ;
3030
31- this . pipeline . remove ( lunr . stemmer ) ;
32- this . searchPipeline . remove ( lunr . stemmer ) ;
31+ this . pipeline . remove ( lunr . stemmer ) ;
32+ this . searchPipeline . remove ( lunr . stemmer ) ;
3333
34- // Feed lunr with each file and let lunr actually index them
35- pagesIndex . forEach ( function ( page ) {
36- this . add ( page ) ;
37- } , this ) ;
38- } )
34+ // Feed lunr with each file and let lunr actually index them
35+ pagesIndex . forEach ( function ( page ) {
36+ this . add ( page ) ;
37+ } , this ) ;
38+ } )
3939 } )
4040 . fail ( function ( jqxhr , textStatus , error ) {
4141 var err = textStatus + ", " + error ;
You can’t perform that action at this time.
0 commit comments