All Projects → meilisearch → meilisearch-react

meilisearch / meilisearch-react

Licence: MIT License
www.meilisearch.com/

Projects that are alternatives of or similar to meilisearch-react

meilisearch-vue
www.meilisearch.com/
Stars: ✭ 80 (-8.05%)
Mutual labels:  instantsearch, meilisearch
unified-instantsearch-ecommerce
The fastest way to implement Algolia, for e-commerce customers.
Stars: ✭ 26 (-70.11%)
Mutual labels:  instantsearch
meilisearch-go
Golang wrapper for the Meilisearch API
Stars: ✭ 200 (+129.89%)
Mutual labels:  meilisearch
algolia.github.io
Algolia's community projects
Stars: ✭ 12 (-86.21%)
Mutual labels:  instantsearch
product
Public feedback and ideation discussions for Meilisearch product 🔮
Stars: ✭ 26 (-70.11%)
Mutual labels:  meilisearch
showcase-books-search
A site to instantly search 28M books from OpenLibrary using Typesense Search (an open source alternative to Algolia / ElasticSearch) ⚡ 📚 🔍
Stars: ✭ 117 (+34.48%)
Mutual labels:  instantsearch
docs-searchbar.js
Front-end search bar for documentation with Meilisearch
Stars: ✭ 128 (+47.13%)
Mutual labels:  meilisearch
meilisearch-dart
The Meilisearch API client written for Dart
Stars: ✭ 48 (-44.83%)
Mutual labels:  meilisearch
milli
Search engine library for Meilisearch ⚡️
Stars: ✭ 433 (+397.7%)
Mutual labels:  meilisearch
mongomeili
Keep your Mongoose Schemas synced with MeiliSearch
Stars: ✭ 33 (-62.07%)
Mutual labels:  meilisearch
Instantsearch.js
⚡️ A JavaScript library for building performant and instant search experiences with Algolia.
Stars: ✭ 2,799 (+3117.24%)
Mutual labels:  instantsearch
Typesense
Fast, typo tolerant, fuzzy search engine for building delightful search experiences ⚡ 🔍 ✨ An Open Source alternative to Algolia and an Easier-to-Use alternative to ElasticSearch.
Stars: ✭ 8,644 (+9835.63%)
Mutual labels:  instantsearch
svelte-algolia
Svelte plugin for keeping Algolia indices in sync with custom data fetching functions.
Stars: ✭ 17 (-80.46%)
Mutual labels:  instantsearch
musicologist
Music advice from a conversational interface powered by Algolia
Stars: ✭ 19 (-78.16%)
Mutual labels:  instantsearch
create-instantsearch-app
⚡️ Build InstantSearch apps at the speed of thought
Stars: ✭ 92 (+5.75%)
Mutual labels:  instantsearch
meilisearch-dotnet
.NET wrapper for the Meilisearch API
Stars: ✭ 66 (-24.14%)
Mutual labels:  meilisearch

Meilisearch-React

Meilisearch React

Meilisearch | Documentation | Slack | Roadmap | Website | FAQ

License

How to integrate a front-end search bar in your React application using Meilisearch

Meilisearch is an open-source search engine. Discover what Meilisearch is!

This repository describes the steps to integrate a relevant front-end search bar with a search-as-you-type experience!

Installation

To integrate a front-end search bar, you need to install two packages:

  • the open-source React InstantSearch library powered by Algolia that provides all the front-end tools you need to highly customize your search bar environment.
  • the Meilisearch client instant-meilisearch to establish the communication between your Meilisearch instance and the React InstantSearch library.
    Instead of reinventing the wheel, we have opted to reuse the InstantSearch library for our own front-end tooling. We will contribute upstream any improvements that may result from our adoption of InstantSearch.

Run:

yarn add react-instantsearch-dom @meilisearch/instant-meilisearch
# or
npm install react-instantsearch-dom @meilisearch/instant-meilisearch

NB: If you don't have any Meilisearch instance running and containing your data, you should take a look at this getting started page.

Getting Started

Thanks to the open-source React InstantSearch library, you can add these components to your application:

import React from 'react';
import { InstantSearch, SearchBox, Hits, Highlight } from 'react-instantsearch-dom';
import { instantMeiliSearch } from '@meilisearch/instant-meilisearch';

const searchClient = instantMeiliSearch(
  "https://integration-demos.meilisearch.com",
  "q7QHwGiX841a509c8b05ef29e55f2d94c02c00635f729ccf097a734cbdf7961530f47c47"
);

const App = () => (
  <InstantSearch
    indexName="steam-video-games"
    searchClient={searchClient}
  >
    <SearchBox />
    <Hits hitComponent={Hit} />
  </InstantSearch>
);

const Hit = ({ hit }) => <Highlight attribute="name" hit={hit} />;

export default App

🚀 For a full getting started example, please take a look at this CodeSandbox:

Edit MS + React-IS

💡 If you have never used React InstantSearch before, we recommend reading this getting started documentation.

Customization and Documentation


Meilisearch provides and maintains many SDKs and Integration tools like this one. We want to provide everyone with an amazing search experience for any kind of project. If you want to contribute, make suggestions, or just know what's going on right now, visit us in the integration-guides repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].