INNER CODE UNIT · Rust
default
apollographql/apollo-mcp-server · crates/apollo-schema-index/src/lib.rs:101
fn default() -> Self {
Self {
max_type_matches: 10,
max_paths_per_type: 3,
short_path_boost_factor: 0.5,
parent_match_boost_factor: 0.2,
}
}
}
/// Splits camelCase and PascalCase identifiers in the given text into space-separated words.
///
/// Each word-like segment (contiguous alphanumeric characters) is converted from camelCase to
/// snake_case using `heck`, then underscores are replaced with spaces. Non-alphanumeric
/// characters are preserved as-is so that Tantivy's `SimpleTokenizer` can still split on them.
///
/// Examples:
/// - `"CreatePostInput"` → `"create post input"`