mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -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>;
|
||||
|
Reference in New Issue
Block a user