Skip to content

Commit eb847a0

Browse files
committed
new TopDocs api
1 parent 8f76286 commit eb847a0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

quickwit/quickwit-indexing/src/actors/merge_executor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,8 @@ mod tests {
839839
let documents_left = searcher
840840
.search(
841841
&tantivy::query::AllQuery,
842-
&tantivy::collector::TopDocs::with_limit(result_docs.len() + 1),
842+
&tantivy::collector::TopDocs::with_limit(result_docs.len() + 1)
843+
.order_by_score(),
843844
)?
844845
.into_iter()
845846
.map(|(_, doc_address)| {

quickwit/quickwit-search/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ fn collect_str_terms(response: LeafListTermsResponse) -> Vec<String> {
16511651
response
16521652
.terms
16531653
.into_iter()
1654-
.map(|term| Term::wrap(term).value().as_str().unwrap().to_string())
1654+
.map(|term| Term::wrap(&term).value().as_str().unwrap().to_string())
16551655
.collect()
16561656
}
16571657

0 commit comments

Comments
 (0)