Skip to content
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

Add stop words to Meili search index #1307

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/src/search/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl Event {
}

pub(super) async fn prepare_index(index: &Index) -> Result<()> {
util::lazy_set_special_attributes(index, "event", FieldAbilities {
util::lazy_set_special_attributes(index, "event", true, FieldAbilities {
searchable: &[
"title",
"creators",
Expand Down
2 changes: 1 addition & 1 deletion backend/src/search/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ pub(crate) async fn rebuild_if_necessary(
for task in tasks {
util::wait_on_task(task, meili).await?;
}
info!("Completely rebuild search index");
info!("Completely rebuilt search index");

meili.meta_index.add_or_replace(&[meta::Meta::current_clean()], None).await
.context("failed to update index version document (clean)")?;
Expand Down
2 changes: 1 addition & 1 deletion backend/src/search/playlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl Playlist {
}

pub(super) async fn prepare_index(index: &Index) -> Result<()> {
util::lazy_set_special_attributes(index, "playlist", FieldAbilities {
util::lazy_set_special_attributes(index, "playlist", true, FieldAbilities {
searchable: &["title", "description"],
filterable: &["read_roles", "write_roles"],
sortable: &["updated_timestamp"],
Expand Down
2 changes: 1 addition & 1 deletion backend/src/search/realm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Realm {
}

pub(super) async fn prepare_index(index: &Index) -> Result<()> {
util::lazy_set_special_attributes(index, "realm", FieldAbilities {
util::lazy_set_special_attributes(index, "realm", false, FieldAbilities {
searchable: &["name"],
filterable: &["is_root", "is_user_realm"],
sortable: &[],
Expand Down
2 changes: 1 addition & 1 deletion backend/src/search/series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl Series {
}

pub(super) async fn prepare_index(index: &Index) -> Result<()> {
util::lazy_set_special_attributes(index, "series", FieldAbilities {
util::lazy_set_special_attributes(index, "series", true, FieldAbilities {
searchable: &["title", "description"],
filterable: &["listed", "read_roles", "write_roles"],
sortable: &["updated_timestamp"],
Expand Down
Loading
Loading