diff options
Diffstat (limited to 'search/elasticlunr/query_index')
-rwxr-xr-x | search/elasticlunr/query_index | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/search/elasticlunr/query_index b/search/elasticlunr/query_index index 4630ab7..90f61e5 100755 --- a/search/elasticlunr/query_index +++ b/search/elasticlunr/query_index @@ -10,7 +10,7 @@ fs.readFile( './posts.index', 'utf8', function( err, data ) { } var index = elasticlunr.Index.load( JSON.parse( data ) ); console.log( 'Index loaded..' ); - var results = index.search( 'the', { fields: { title : { boost : 2}, content : { boost : 1 } } } ); + var results = index.search( 'the', { fields: { title : { boost : 2 }, content : { boost : 1 } } } ); for( var i = 0; i < results.length; i++ ) { console.log( i + ". " + results[i]['ref'] + " " + results[i]['doc']['title'] ); |