exokitxr / webmr-docs

Exokit documentation
https://docs.webmr.io
4 stars 2 forks source link

Indexing and Search functionality with Algolia #11

Closed ChristopherTrimboli closed 6 years ago

ChristopherTrimboli commented 6 years ago

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:

avaer commented 6 years ago

Setup instructions

<!-- 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> 

 For example if you want to refine the search to the language "en" just specify: 'facetFilters': ["language:en"]

ChristopherTrimboli commented 6 years ago

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.

ChristopherTrimboli commented 6 years ago

completed