MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / text_search

Method text_search

nodedb-client/src/remote/client/dispatch.rs:177–188  ·  view source on GitHub ↗
(
        &self,
        collection: &str,
        field: &str,
        query: &str,
        top_k: usize,
        params: TextSearchParams,
        _allowed_ids: Option<&std::collections::HashSet<Str

Source from the content-addressed store, hash-verified

175 }
176
177 async fn text_search(
178 &self,
179 collection: &str,
180 field: &str,
181 query: &str,
182 top_k: usize,
183 params: TextSearchParams,
184 _allowed_ids: Option<&std::collections::HashSet<String>>,
185 ) -> NodeDbResult<Vec<SearchResult>> {
186 self.text_search_impl(collection, field, query, top_k, params)
187 .await
188 }
189
190 async fn on_collection_purged(&self, _handler: CollectionPurgedHandler) -> NodeDbResult<()> {
191 // Stateless pgwire-only client: no push capability. The trait

Callers 2

dispatchFunction · 0.45

Calls 1

text_search_implMethod · 0.80

Tested by 1