Verified Commit 38c14459 authored by Camil Staps's avatar Camil Staps 🚀

Also use snake_case and camelCase tokenizer for search queries (#9)

parent 8855eac5
Pipeline #15081 passed with stage
in 58 seconds
......@@ -142,7 +142,10 @@ function highlightCallback(span, cls, str) {
if (this.value == '')
return;
var results = lunr_index.search(this.value);
var tokens = lunr_programming_tokenizer(this.value);
var results = lunr_index.query(function(q){
q.term(tokens);
});
var cloogle = '<a href="https://cloogle.org/#' + this.value + '" target="_blank">search on Cloogle</a>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment