Fix comments

This commit is contained in:
Clément Renault 2024-11-20 11:36:17 +01:00
parent 4cdfdddd6d
commit 56c7c5d5f0
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -183,7 +183,7 @@ impl FacetedDocidsExtractor {
match value { match value {
// Number // Number
// key: fid - level - orderedf64 - orignalf64 // key: fid - level - orderedf64 - originalf64
Value::Number(number) => { Value::Number(number) => {
let mut ordered = [0u8; 16]; let mut ordered = [0u8; 16];
if number if number
@ -221,7 +221,7 @@ impl FacetedDocidsExtractor {
buffer.extend_from_slice(truncated.as_bytes()); buffer.extend_from_slice(truncated.as_bytes());
cache_fn(cached_sorter, &buffer, docid) cache_fn(cached_sorter, &buffer, docid)
} }
/// Bool is handled as a string // Bool is handled as a string
Value::Bool(b) => { Value::Bool(b) => {
let b = if *b { "true" } else { "false" }; let b = if *b { "true" } else { "false" };
let mut string = BVec::new_in(doc_alloc); let mut string = BVec::new_in(doc_alloc);