fix: search workspace sync indexing (#5437)

* fix: search workspace sync indexing

* chore: update collab rev temporarily

* feat: revert comparison and implement index check

* chore: fixes after merg

* chore: enable search

* chore: disable ai test

---------

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Mathias Mogensen
2024-06-05 04:05:51 +02:00
committed by GitHub
parent e4eff7e632
commit 041e3c155a
19 changed files with 368 additions and 73 deletions

View File

@ -13,6 +13,18 @@ pub struct IndexableData {
pub workspace_id: String,
}
impl IndexableData {
pub fn from_view(view: Arc<View>, workspace_id: String) -> Self {
IndexableData {
id: view.id.clone(),
data: view.name.clone(),
icon: view.icon.clone(),
layout: view.layout.clone(),
workspace_id: workspace_id.clone(),
}
}
}
pub trait IndexManager: Send + Sync {
fn set_index_content_receiver(&self, rx: IndexContentReceiver, workspace_id: String);
fn add_index(&self, data: IndexableData) -> Result<(), FlowyError>;