Skip to main content

Module search

Module search 

Source
Expand description

In-memory inverted index for fast node lookup.

Provides SearchIndex which tokenizes node labels, ids, and source files into an inverted index for sub-linear search across the knowledge graph.

Structs§

SearchIndex
In-memory inverted index mapping tokens to weighted (node_id, weight) pairs.

Functions§

tokenize
Split input on camelCase boundaries, _, ., ::, /, \, -, and whitespace. Returns all-lowercase, non-empty tokens.