Create and query full-text indexes

Use RediSearch-backed full-text indexes for text search with wildcard and fuzzy matching

falkordb Updated

File contents

Create and query full-text indexes

Use RediSearch-backed full-text indexes for text search capabilities.

Usage

Create full-text indexes using the db.idx.fulltext.createNodeIndex procedure, then query them using db.idx.fulltext.queryNodes.

Example

redis-cli GRAPH.QUERY social "CALL db.idx.fulltext.createNodeIndex('Movie', 'title')"
redis-cli GRAPH.QUERY social "CALL db.idx.fulltext.queryNodes('Movie', 'Jun*') YIELD node RETURN node.title"

Notes

  • Full-text indexes leverage RediSearch for advanced text search capabilities
  • Supports wildcard searches and fuzzy matching
  • Use CALL to invoke the index creation and query procedures
  • YIELD node is used to capture results from the procedure
  • Full-text indexes are ideal for searching text content with partial matches

falkordb/skills/tree/main/cypher-skills/create-and-query-fulltext-indexes commit d144b16c9f

Frequently asked questions

npx skillmds@latest add falkordb/create-and-query-full-text-indexes