Skip to main content
@tags: keyword, search, bm25, text-search, full-text, ranking Search for keywords in nodes using BM25 algorithm.

Syntax

Notes:
  • BM25 is a ranking function used for full-text search.
  • It searches through the text properties of nodes and ranks results based on keyword relevance and frequency.
  • Make sure you enable BM25 in your helix.toml file.
  • Schema:
  • Query:
  • cURL:
  • Python SDK:
  • TypeScript SDK:

Example 2: Keyword search with postfiltering

  • Schema:
  • Query:
  • cURL:
  • Python SDK:
  • TypeScript SDK: