Added commented out index and suggestion title section for api explorer

This commit is contained in:
Piotr Janosz
2019-08-13 16:20:02 +02:00
committed by fabioberger
parent ab8a0da16a
commit b27311da2e
2 changed files with 4 additions and 0 deletions

View File

@@ -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',

View File

@@ -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>
);