Create a simple front-end interface to search through your dataset after following Meilisearch’s quick start.
instant-meilisearch
is the easiest way to build a front-end interface for search. instant-meilisearch
is a plugin that establishes communication between a Meilisearch instance and InstantSearch. InstantSearch, an open-source project developed by Algolia, renders all the components needed to start searching.
index.html
index.html
in your browser by double-clicking it in your folder<body>
add two container elements: #searchbox
and #hits
. instant-meilisearch
creates the search bar inside #searchbox
and lists search results in #hits
<script src="…">
tags import libraries needed to run instant-meilisearch
<script>
tag is where you customize instant-meilisearch
instant-meilisearch
’s documentation for more information on how to further customize your search interface.