Skip to content

Commit

Permalink
fix: correct index to use
Browse files Browse the repository at this point in the history
  • Loading branch information
AcrylicShrimp committed Mar 17, 2024
1 parent e8163ba commit c40e686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/search_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl SearchService {
let array_filter = array_filter.iter().map(|s| s.as_str()).collect();

let query = self
.collections_index
.files_index
.search()
.with_query(q)
.with_array_filter(array_filter)
Expand All @@ -359,8 +359,8 @@ impl SearchService {
let result = match result {
Ok(result) => result,
Err(err) => {
let index_uid = &self.collections_index.uid;
log::error!(target: "search_service", index_uid, q, err:err; "Failed to search collections.");
let index_uid = &self.files_index.uid;
log::error!(target: "search_service", index_uid, q, err:err; "Failed to search files.");
return Err(err.into());
}
};
Expand Down

0 comments on commit c40e686

Please sign in to comment.