File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ the [separator] includes the `\u200b` character:
66
66
``` yaml
67
67
plugins :
68
68
- search :
69
- separator : ' [\\s\\ u200b\ \-]'
69
+ separator : ' [\s\ u200b\-]'
70
70
` ` `
71
71
72
72
That's all that is necessary.
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ The following configuration options are supported:
108
108
` ` ` yaml
109
109
plugins:
110
110
- search:
111
- separator: '[\\ s \\ - \ \ .]' # (1)!
111
+ separator: '[\s\- \. ]' # (1)!
112
112
` ` `
113
113
114
114
1. Tokenization itself is carried out by [lunr's default tokenizer], which
@@ -193,7 +193,7 @@ documents are tokenized:
193
193
` ` ` yaml
194
194
plugins:
195
195
- search:
196
- separator: "[ \\ s \\ -,:!=\\ [ \\ ]()\ " /]+|\\ .(?!\\ d)|&[lg]t;|(?!\\ b)(?=[A-Z][a-z])"
196
+ separator: '[ \s\ - ,:!=\[\ ] ()"/]+|\. (?!\d )|&[lg]t;|(?!\b )(?=[A-Z][a-z])'
197
197
` ` `
198
198
199
199
The following section explains what can be achieved with tokenizer lookahead :
Original file line number Diff line number Diff line change @@ -1119,7 +1119,7 @@ was renamed to `separator`:
1119
1119
``` yaml
1120
1120
plugins:
1121
1121
- search:
1122
- separator: '[\\s\\-\ \.]+'
1122
+ separator: '[\s\- \.]+'
1123
1123
lang:
1124
1124
- en
1125
1125
- de
@@ -1132,7 +1132,7 @@ was renamed to `separator`:
1132
1132
extra:
1133
1133
search:
1134
1134
language: en, de, ru
1135
- tokenizer: '[\\s\\-\ \.]+'
1135
+ tokenizer: '[\s\- \.]+'
1136
1136
```
1137
1137
1138
1138
[ plugin options ] : setup/setting-up-site-search.md#built-in-search-plugin
Original file line number Diff line number Diff line change 32
32
"meta.source": "來源",
33
33
"search.config.lang": "ja",
34
34
"search.config.pipeline": "trimmer, stemmer",
35
- "search.config.separator": "[\\,\\ 。]+",
35
+ "search.config.separator": "[\\s\\-, 。]+",
36
36
"search.placeholder": "搜尋",
37
37
"search.result.initializer": "正在初始化搜尋引擎",
38
38
"search.result.placeholder": "鍵入以開始檢索",
Original file line number Diff line number Diff line change 36
36
"nav.title": "导航栏",
37
37
"search.config.lang": "ja",
38
38
"search.config.pipeline": "trimmer, stemmer",
39
- "search.config.separator": "[\\,\\ 。]+",
39
+ "search.config.separator": "[\\s\\-, 。]+",
40
40
"search.placeholder": "搜索",
41
41
"search.share": "分享",
42
42
"search.reset": "清空当前内容",
You can’t perform that action at this time.
0 commit comments