pub trait SearchProvider:
Environment
+ Send
+ Sync {
// Required method
fn TextSearch<'life0, 'async_trait>(
&'life0 self,
QueryValue: Value,
OptionsValue: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
An abstract service contract for an environment component that can perform high-performance text and file searches across the workspace.
Required Methods§
Sourcefn TextSearch<'life0, 'async_trait>(
&'life0 self,
QueryValue: Value,
OptionsValue: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn TextSearch<'life0, 'async_trait>(
&'life0 self,
QueryValue: Value,
OptionsValue: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Performs a text search across all workspace folders.
§Parameters
QueryValue: A DTO representing the text search query, including the pattern, case sensitivity, etc.OptionsValue: A DTO representing search options, such as files to include or exclude.
§Returns
A Result containing a Value that is a JSON array of FileMatchDTOs.