Skip to content

Commit

Permalink
fix: type of lvl0 (#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
kai687 committed Apr 20, 2023
1 parent 4b25014 commit 8f48ebb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/website/docs/record-extractor.md
Expand Up @@ -54,7 +54,7 @@ recordExtractor: ({ $, helpers }) => {
recordProps: {
lvl0: {
selectors: "header h1",
}
},
lvl1: "article h2",
lvl2: "article h3",
lvl3: "article h4",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 8f48ebb

Please sign in to comment.