Skip to content
Snippets Groups Projects
Commit ff305527 authored by Silvio Giebl's avatar Silvio Giebl
Browse files

Moved config search_tokenizer_separator -> search.tokenizer_separator

parent 7f5b1f14
No related branches found
No related tags found
No related merge requests found
......@@ -8,4 +8,4 @@ search_exclude: true
<h1>Page not found</h1>
<p>The page you requested could not be found. Try using the navigation {% if site.search_enabled %}or search {% endif %}to find what you're looking for or go to this <a href="{{ site.url }}{{ site.baseurl }}">site's home page</a>.</p>
<p>The page you requested could not be found. Try using the navigation {% if site.search_enabled != false %}or search {% endif %}to find what you're looking for or go to this <a href="{{ '/' | absolute_url }}">site's home page</a>.</p>
......@@ -31,9 +31,7 @@ search:
preview_words_before: 5
preview_words_after: 10
rel_url: false
# Set the search token separator for hyphenated-word search:
search_tokenizer_separator: /[\s/]+/
tokenizer_separator: /[\s/]+/ # Set the search token separator for hyphenated-word search
# Enable or disable heading anchors
heading_anchors: true
......
......@@ -75,7 +75,7 @@ function initSearch() {
if (request.status >= 200 && request.status < 400) {
var docs = JSON.parse(request.responseText);
lunr.tokenizer.separator = {{ site.search_tokenizer_separator | default: "/[\s\-/]+/" }}
lunr.tokenizer.separator = {{ site.search.tokenizer_separator | default: site.search_tokenizer_separator | default: "/[\s\-/]+/" }}
var index = lunr(function(){
this.ref('id');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment