Skip to main content

adapt_document

Function adapt_document 

Source
pub fn adapt_document(path: &Path, content: &str) -> Option<Vec<SearchDoc>>
Expand description

Detect the kind for a file path and, if recognised, parse it into chunks. Returns None when the file is not handled by any adapter.