Added commented out index and suggestion title section for api explorer
This commit is contained in:
committed by
fabioberger
parent
ab8a0da16a
commit
b27311da2e
@@ -101,8 +101,10 @@ const CustomAutoComplete: React.FC<IAutoCompleteProps> = ({
|
||||
const renderSectionTitle = (section: any): React.ReactNode => {
|
||||
const { tools, guides } = searchIndices;
|
||||
const coreConcepts = searchIndices['core-concepts'];
|
||||
// const apiExplorer = searchIndices['api-explorer'];
|
||||
|
||||
const titles: { [key: string]: string } = {
|
||||
// [apiExplorer]: 'Api explorer',
|
||||
[coreConcepts]: 'Core concepts',
|
||||
[tools]: 'Tools',
|
||||
[guides]: 'Guides',
|
||||
|
@@ -13,8 +13,10 @@ export const SearchInput: React.FC<ISearchInputProps> = ({ isHome }) => (
|
||||
<InstantSearch searchClient={searchClient} indexName={searchIndices.tools}>
|
||||
<AutoComplete isHome={isHome} />
|
||||
<Configure hitsPerPage={5} distinct={true} />
|
||||
{/* We could map these when we decide to show api explorer in search results */}
|
||||
<Index indexName={searchIndices.tools} />
|
||||
<Index indexName={searchIndices.guides} />
|
||||
<Index indexName={searchIndices['core-concepts']} />
|
||||
{/* <Index indexName={searchIndices['api-explorer']} /> */}
|
||||
</InstantSearch>
|
||||
);
|
||||
|
Reference in New Issue
Block a user