Instant Search With Algolia
React-Instant Search makes it easy to design the perfect search experience using pre-packaged search components or creating your own!
We have used shop page example to integrate instant search. There is a lot of other pre-made demo examples on the official doc. In Reactify you can see the demo on this url http://reactify.theironnetwork.org/app/ecommerce/shop.
Getting Started:
Step 1: Create an account on Algolia.
Step 2: After Signup you will get the 14 days trial and you will update the plan according to your requirements. Reference Link : https://www.algolia.com/pricing
Step 3: Create an Index on Algolia Dashboard by clicking on the indices tab from the left menu and then clicking on create index button. Please check the screenshot below for reference:
Step 4: Add your products fields with values under the newly created Index.
Step 5: You need to change your app name in the manage applications page. Just open the given url, edit the app and give your app a name. This app name is used in the template.
https://www.algolia.com/manage/applications
www.algolia.com
Step 6: Now open the API keys tab from the left menu and copy the Search-Only API Key , now open the src->routes->ecommerce->shop->index.js file from the template and paste the credentials in the apiKey, indexName with the index you have created & appId with the app name you have given to your app in step 5.
<InstantSearch
appId="<app name>" // created in step 5
apiKey="<api key>" // copied in step 6
indexName="<index name>" // created in step 3
>
</InstantSearch>
To get more information about algolia instant search check the official document.
Copy link