File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
quickwit-indexing/src/actors Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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) | {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments