mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Fix search results ranking and grouping (#7183)
This commit is contained in:
@@ -94,7 +94,17 @@ export function Search({
|
||||
onOpen,
|
||||
onClose,
|
||||
searchParameters = {
|
||||
hitsPerPage: 5,
|
||||
hitsPerPage: 30,
|
||||
attributesToHighlight: [
|
||||
'hierarchy.lvl0',
|
||||
'hierarchy.lvl1',
|
||||
'hierarchy.lvl2',
|
||||
'hierarchy.lvl3',
|
||||
'hierarchy.lvl4',
|
||||
'hierarchy.lvl5',
|
||||
'hierarchy.lvl6',
|
||||
'content',
|
||||
],
|
||||
},
|
||||
}: SearchProps) {
|
||||
useDocSearchKeyboardEvents({isOpen, onOpen, onClose});
|
||||
@@ -111,6 +121,7 @@ export function Search({
|
||||
<DocSearchModal
|
||||
{...options}
|
||||
searchParameters={searchParameters}
|
||||
insights={true}
|
||||
onClose={onClose}
|
||||
navigator={{
|
||||
navigate({itemUrl}: any) {
|
||||
|
||||
@@ -15,7 +15,7 @@ exports.siteConfig = {
|
||||
twitterUrl: 'https://twitter.com/reactjs',
|
||||
algolia: {
|
||||
appId: '1FCF9AYYAT',
|
||||
apiKey: 'e8451218980a351815563de007648b00',
|
||||
apiKey: '1b7ad4e1c89e645e351e59d40544eda1',
|
||||
indexName: 'beta-react',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user