Skip to content

Commit

Permalink
doc(structured_doc): add description to structuredDocState
Browse files Browse the repository at this point in the history
  • Loading branch information
zwpaper committed Nov 25, 2024
1 parent 0d1085f commit 8556797
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/tabby-index/src/structured_doc/public.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ pub use super::types::{
use super::{create_structured_doc_builder, types::BuildStructuredDoc};
use crate::{indexer::TantivyDocBuilder, Indexer};

/// StructuredDocState is used to track the state of the document source.
/// It is used to determine whether the document should be updated or deleted.
pub struct StructuredDocState {
// updated_at is the time when the document was last updated.
pub updated_at: DateTime<Utc>,
// deleted indecates whether the document should be deleted in indexer
// for example, a closed pull request will be marked as deleted, and
// the indexer will remove it from the index.
pub deleted: bool,
}

Expand Down

0 comments on commit 8556797

Please sign in to comment.