mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-16 08:02:24 -06:00
Update search.md
This commit is contained in:
parent
7804642c50
commit
3ae06cd59b
@ -59,12 +59,12 @@ In your site's `_config.yml`, enable search:
|
|||||||
search_enabled: true
|
search_enabled: true
|
||||||
```
|
```
|
||||||
|
|
||||||
The default is for hyphens to separate tokens in search terms:
|
The default is for hyphens to separate tokens in search terms:
|
||||||
`gem-based` is equivalent to `gem based`, matching either word.
|
`gem-based` is equivalent to `gem based`, matching either word.
|
||||||
To allow search for hyphenated words:
|
To allow search for hyphenated words:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Set the search token separator
|
# Set the search token separator
|
||||||
search_tokenizer_separator: /[\s/]+/
|
search_tokenizer_separator: /[\s/]+/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user