File tree 1 file changed +10
-4
lines changed 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ recordExtractor: ({ $, helpers }) => {
54
54
recordProps: {
55
55
lvl0: {
56
56
selectors: " header h1" ,
57
- }
57
+ },
58
58
lvl1: " article h2" ,
59
59
lvl2: " article h3" ,
60
60
lvl3: " article h4" ,
@@ -185,7 +185,9 @@ This parameter allow you to boost records built from the current `pathsToMatch`.
185
185
recordExtractor : ({ $, helpers }) => {
186
186
return helpers .docsearch ({
187
187
recordProps: {
188
- lvl0: " header h1" ,
188
+ lvl0: {
189
+ selectors: " header h1" ,
190
+ },
189
191
lvl1: " article h2" ,
190
192
lvl2: " article h3" ,
191
193
lvl3: " article h4" ,
@@ -210,7 +212,9 @@ If you encounter the `Extractors returned too many records` error when your page
210
212
recordExtractor : ({ $, helpers }) => {
211
213
return helpers .docsearch ({
212
214
recordProps: {
213
- lvl0: " header h1" ,
215
+ lvl0: {
216
+ selectors: " header h1" ,
217
+ },
214
218
lvl1: " article h2" ,
215
219
lvl2: " article h3" ,
216
220
lvl3: " article h4" ,
@@ -235,7 +239,9 @@ If you encounter the `Records extracted are too big` error when crawling your we
235
239
recordExtractor : ({ $, helpers }) => {
236
240
return helpers .docsearch ({
237
241
recordProps: {
238
- lvl0: " header h1" ,
242
+ lvl0: {
243
+ selectors: " header h1" ,
244
+ },
239
245
lvl1: " article h2" ,
240
246
lvl2: " article h3" ,
241
247
lvl3: " article h4" ,
You can’t perform that action at this time.
0 commit comments