Skip to content

Commit dfa57f5

Browse files
committed
ensure exact phrase matching is enabled in search
- set option even if not set on the index itself
1 parent c5a7dcb commit dfa57f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/vendor/docsearch.bundle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
appendStylesheet(config.stylesheet)
88
var algoliaOptions = {
99
hitsPerPage: parseInt(config.maxResults) || 25,
10+
advancedSyntax: true,
11+
advancedSyntaxFeatures: ['exactPhrase'],
1012
}
1113
var searchForm = document.querySelector('form.search')
1214
var controller = docsearch({

0 commit comments

Comments
 (0)