lookup_path


Description:

public static ArrayList<VectorMetadata> lookup_path (Database db, int64[] file_ids, string ast_path)

Lookup AST path across multiple files (for codebase search).

Searches for metadata entries matching the given AST path within the specified files. Tries exact match first, then falls back to suffix matching (finds paths that end with the search path).

Parameters:

db

The database instance

file_ids

Array of file IDs to search within (empty array searches all files)

ast_path

AST path to search for (e.g., "Namespace-Class-Method")

Returns:

List of VectorMetadata objects matching the AST path, ordered by exact matches first