The most powerful and easy to use APIs to build leading digital experiences.
<div id="searchbox"></div>
<div id="refinement"></div>
<div id="hits"></div>
<script>
const {
searchBox,
hits
} = instantsearch.widgets;
search.addWidgets([
searchBox({
container: "#searchbox"
}),
hits({
container: "#hits"
}),
refinementList({
container: "#refinement",
attribute: "company"
}),
]);
search.start();
</script>
my_index = client.init_index('contacts')
my_index.save_object({
firstname: "Jimmie",
lastname: "Barninger",
company: "California Paint"
})
Insights.register(
appId: "ALGOLIA_APP_ID",
apiKey: "ALGOLIA_API_KEY",
userToken: "user-123456"
)
Insights.shared?.clickedAfterSearch(
eventName: "Product Clicked",
indexName: "products",
objectIDs: ["9780545139700"],
positions: [7],
queryID: "cba8245617aeace44"
)
High-performing companies build leading search and discovery experiences with Algolia