Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update type of lvl0 #1859

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions packages/website/docs/record-extractor.md
Original file line number Diff line number Diff line change
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