Skip to content

Commit 8f48ebb

Browse files
authored
fix: type of lvl0 (#1859)
1 parent 4b25014 commit 8f48ebb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

packages/website/docs/record-extractor.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ recordExtractor: ({ $, helpers }) => {
5454
recordProps: {
5555
lvl0: {
5656
selectors: "header h1",
57-
}
57+
},
5858
lvl1: "article h2",
5959
lvl2: "article h3",
6060
lvl3: "article h4",
@@ -185,7 +185,9 @@ This parameter allow you to boost records built from the current `pathsToMatch`.
185185
recordExtractor: ({ $, helpers }) => {
186186
return helpers.docsearch({
187187
recordProps: {
188-
lvl0: "header h1",
188+
lvl0: {
189+
selectors: "header h1",
190+
},
189191
lvl1: "article h2",
190192
lvl2: "article h3",
191193
lvl3: "article h4",
@@ -210,7 +212,9 @@ If you encounter the `Extractors returned too many records` error when your page
210212
recordExtractor: ({ $, helpers }) => {
211213
return helpers.docsearch({
212214
recordProps: {
213-
lvl0: "header h1",
215+
lvl0: {
216+
selectors: "header h1",
217+
},
214218
lvl1: "article h2",
215219
lvl2: "article h3",
216220
lvl3: "article h4",
@@ -235,7 +239,9 @@ If you encounter the `Records extracted are too big` error when crawling your we
235239
recordExtractor: ({ $, helpers }) => {
236240
return helpers.docsearch({
237241
recordProps: {
238-
lvl0: "header h1",
242+
lvl0: {
243+
selectors: "header h1",
244+
},
239245
lvl1: "article h2",
240246
lvl2: "article h3",
241247
lvl3: "article h4",

0 commit comments

Comments
 (0)