Closed ChristopherTrimboli closed 6 years ago
<!-- at the end of the HEAD -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<!-- at the end of the BODY -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '982c937859de6fb51f8adf43ec9a9051',
indexName: 'exokit',
inputSelector: '### REPLACE ME ####',
algoliaOptions: { 'facetFilters': ["language:$LANGUAGE"] },
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
Add a search input in your page if you don't have any yet. Then update the inputSelector value in JS snippet to a CSS selector that targets your search input field.
Replace $LANGUAGE
with the language you want to search on.
The list of possible language is hardcoded in the config.
So as of today you have: en
For example if you want to refine the search to the language "en"
just specify: 'facetFilters': ["language:en"]
Put that code into the siteConfig.js, API calls are working and responding with 200. This means that we are deff talking to the right server and the API keys are ok. However, we are still getting zero results from our queries. My thinking is that they have not created 'exokit' index yet.
Avaer has sent a email to them for help and info, waiting on that response from them.
completed
We have a search bar setup on the frontend with API keys POSTing to the Algolia API on the backend. However, we have no meaningful index to return us good search data. We need Docsearch's indexing service.
Things missing are: