pub fn augment_query_with_scope(
query: &str,
relative_scope: &Path,
is_file_query: bool,
) -> StringExpand description
Augment a query with an implicit path filter when using ancestor index.
§Arguments
query- Original query stringrelative_scope- Path relative to index root to filter byis_file_query- True if scope is a file, false if directory
§Returns
Query string with path filter appended
§Path Handling
- Paths with spaces, quotes, or glob metacharacters are quoted automatically
- Inside quotes, glob metacharacters are escaped with backslashes
- The implicit filter is
ANDedwith the original query - Parentheses ensure correct precedence
- File queries use exact path match; directory queries use
/**glob