diff --git a/lib/index.js b/lib/index.js index ec0bbcbb..a80415db 100755 --- a/lib/index.js +++ b/lib/index.js @@ -566,22 +566,6 @@ exports.buildSearchData = data => { // https://github.com/olivernn/lunr.js/issues/25#issuecomment-623267494 this.metadataWhitelist = ['position']; - // How to find more stop word candidates: - // cat site/build/assets/search-1588572080743.js | jq -r '.textData | .[] | .[]' - // paste the output into this tool: - // https://www.online-utility.org/text/analyzer.jsp - const extraStopWords = lunr.generateStopWordFilter( [ - 'career', - 'company', - 'employees', - 'job', - 'remote', - 'team', - 'work', - ] ); - lunr.Pipeline.registerFunction( extraStopWords, 'extraStopWords' ); - this.pipeline.after( lunr.stopWordFilter, extraStopWords ); - Object.keys( textData ).forEach( c => this.add( textData[ c ] ) ); } );