diff --git a/scripts/indexr.js b/scripts/indexr.js index 992ee62d..fbf1e9c6 100644 --- a/scripts/indexr.js +++ b/scripts/indexr.js @@ -29,7 +29,7 @@ const pageQuery = ` fields { slug } - excerpt(pruneLength: 6700) + excerpt(pruneLength: 100) } } } @@ -37,11 +37,16 @@ const pageQuery = ` `; function pageToTypesenseRecord({ node }) { - const { id, frontmatter, ...rest } = node; - console.log('node', node); + const { id, frontmatter, fields = {}, headings = [], ...rest } = node; + + const formattedHeadings = headings.map(h => h.value || '').filter(Boolean); return { objectID: id, - ...frontmatter, + title: frontmatter.title || '', + search_keyword: String(frontmatter.search_keyword || ''), + slug: fields.slug || '', + excerpt: frontmatter.excerpt || '', + headings: formattedHeadings, ...rest, }; } diff --git a/src/components/SearchHits.jsx b/src/components/SearchHits.jsx index 677e9975..f4e4c1ed 100644 --- a/src/components/SearchHits.jsx +++ b/src/components/SearchHits.jsx @@ -23,10 +23,10 @@ export const CustomSearchBox = connectSearchBox(SearchBox); /* eslint-disable react/no-danger */ const Hits = ({ hits }) => (
Preference | +Description | +Allowed Values | +Input Type | +
---|---|---|---|
config.preference.resultLevel | +Defines the level of detail for the report | +PLAN, MACHINE, SUITE, CASE | +Single value | +
config.preference.step | +Specifies which steps to include in the report | +PASSED, FAILED, EXECUTED, NOT_EXECUTED, ALL, NONE | +Single value | +
config.preference.screenshot | +Indicates which screenshots to include | +PASSED, FAILED, ALL, NONE | +Single value | +
config.preference.visualDifference | +Specifies which visual screenshots to include | +PASSED, FAILED, ALL, NONE | +Single value | +
config.preference.summaryFields | +Fields to display in the report summary | +name, executedBy, environment, testPlanName, testDeviceName, testSuiteName, result, buildNo, runId, screenshotCapturedFor, screenshotMode | +Multi-value (comma-separated) | +
config.preference.caseListColumns | +Columns to show in the test case list | +ETF, testSuite, testMachine, assignee, reviewer | +Multi-value (comma-separated) | +
config.preference.caseDetailsHeaders | +Columns to show in case details headers | +testCaseName, testSuiteName | +Multi-value (comma-separated) | +
config.preference.stepListColumns | +Columns to show in the step list | +reasonForFailure, testDataDetails, duration, apiResponseUrl | +Multi-value (comma-separated) | +