Take full control of your search setup for optimal results
Adjust your semantic ratio to achieve the ideal balance between AI-powered semantic search and full-text search capabilities.

Full-text search β
Best when you know precisely what to look for

Semantic search β
Ideal when searching for concepts instead of focusing solely on words

β¨ Hybrid search
Combine the best of both worlds
The easiest path to creating a top-notch search experience
Search enters your AI application stack
Meilisearch comes with tailored SDKs for your favorite framework or language.

from langchain.vectorstores import Meilisearch
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.document_loaders import JSONLoaderβ¨β¨
# Load documentsβ¨
loader = JSONLoader(
β¨ file_path="./movies.json",
β¨ jq_schema=".[] | {id: .id, title: .title, overview: .overview}",
text_content=False,
)β¨
documents = loader.load()β¨β¨
# Index documents
embeddings = OpenAIEmbeddings()
vector_store = Meilisearch.from_documents(documents=documents, embedding=embeddings)
# Search
query = "superhero fighting villains in a city corrupted by crime"
results = vector_store.similarity_search(
β¨ query=query,
β¨ k=3,
)
18K USERS WORLDWIDE ARE USING MEILISEARCH TO POWER THEIR SEARCH EXPERIENCE.