Relevance you can inspect
Use BM25 scoring and its explain output to understand why documents match and how their terms contribute to a result.
Explore BM25 rankingFull-text search
Search document text with keyword and phrase matching, or rank relevant results with BM25.
Use embeddings to find relevant content. Vector search compares meaning.
Make descriptions, articles and application content searchable. A shared document ID connects each search hit to its original record.
Write a search entry under a document ID that matches your record's primary key. Choose the table and field you will query later.
Match terms or phrases, use BM25 for ranked results and fetch the corresponding records by ID when you need their full context.
Update the search entry when its source text changes. Row edits do not automatically re-index text.
Index a documentUse BM25 scoring and its explain output to understand why documents match and how their terms contribute to a result.
Explore BM25 rankingUse the JSON query DSL for field weights, filters, negation and multi-field search when a simple keyword query is not enough.
Explore search queriesKeep searchable text alongside SQL, vector and graph data, with shared IDs linking search results to the rest of your application.
See the data modelsChoose the simplest search mode that answers your application's question.
Include or exclude content by its terms when relevance ordering is not needed.
Match an exact sequence such as a product name, quoted passage or technical phrase.
Rank candidates using term frequency, term rarity and document length.
BM25, phrase search and advanced query options require the corresponding full-text capability on your instance.
A match in a product title may matter more than a passing mention in its description. Use multi-field weights to express that choice, then inspect the results.
Try a weighted queryIndex text and return relevant matches using BM25. The guide covers required capabilities and response formats.
BM25 exampleReview dedicated deployment availability, authentication options and supported operations before connecting a client.
Current Elasticsearch supportUse supported Elasticsearch 7.x clients through the compatibility API, with documented search operations, aggregations and limits.
Elasticsearch connection guide