1
0
Fork 0

fix: type of lvl0 (#1859)

This commit is contained in:
Kai Welke 2023-04-20 09:08:51 +02:00 committed by GitHub
parent 4b250142dc
commit 8f48ebb330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ recordExtractor: ({ $, helpers }) => {
recordProps: {
lvl0: {
selectors: "header h1",
}
},
lvl1: "article h2",
lvl2: "article h3",
lvl3: "article h4",
@ -185,7 +185,9 @@ This parameter allow you to boost records built from the current `pathsToMatch`.
recordExtractor: ({ $, helpers }) => {
return helpers.docsearch({
recordProps: {
lvl0: "header h1",
lvl0: {
selectors: "header h1",
},
lvl1: "article h2",
lvl2: "article h3",
lvl3: "article h4",
@ -210,7 +212,9 @@ If you encounter the `Extractors returned too many records` error when your page
recordExtractor: ({ $, helpers }) => {
return helpers.docsearch({
recordProps: {
lvl0: "header h1",
lvl0: {
selectors: "header h1",
},
lvl1: "article h2",
lvl2: "article h3",
lvl3: "article h4",
@ -235,7 +239,9 @@ If you encounter the `Records extracted are too big` error when crawling your we
recordExtractor: ({ $, helpers }) => {
return helpers.docsearch({
recordProps: {
lvl0: "header h1",
lvl0: {
selectors: "header h1",
},
lvl1: "article h2",
lvl2: "article h3",
lvl3: "article h4",