Skip to content

Commit

Permalink
Add tokenizer to search pipeline (#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyvanderaerden authored Feb 17, 2022
1 parent 7fa36d5 commit 91b1085
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/search-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function elixirTokenSplitter (builder) {

lunr.Pipeline.registerFunction(elixirTokenFunction, 'elixirTokenSplitter')
builder.pipeline.before(lunr.stemmer, elixirTokenFunction)
builder.searchPipeline.before(lunr.stemmer, elixirTokenFunction)
}

function searchResultsToDecoratedSearchNodes (results) {
Expand Down

0 comments on commit 91b1085

Please sign in to comment.