Skip to content

Add search index #4306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft

Add search index #4306

wants to merge 27 commits into from

Conversation

terror
Copy link
Contributor

@terror terror commented Mar 27, 2025

No description provided.

Comment on lines +76 to +77
#[arg(long, help = "Use search index at <SEARCH_INDEX>.")]
pub(crate) search_index: Option<PathBuf>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this doesn't even need to be configurable initially. We could just put it into the ord data dir.

Comment on lines +289 to +291
if search_indexer.join().is_err() {
log::warn!("Search index thread panicked; join failed");
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just good for debuggability:

Suggested change
if search_indexer.join().is_err() {
log::warn!("Search index thread panicked; join failed");
}
if let Err(err) = search_indexer.join() {
log::warn!("Search index thread panicked: {err}");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants