mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-06 01:02:55 +00:00
fmt
This commit is contained in:
@@ -34,9 +34,9 @@ impl MultiValueIndex {
|
||||
/// have values, this function returns `start..end`
|
||||
/// such that `value_column.get(start_doc)` is the first value of
|
||||
/// `start_doc` (well, if there is one), and `value_column.get(end_doc - 1)`
|
||||
/// is the last value of `end_doc`.
|
||||
/// is the last value of `end_doc`.
|
||||
///
|
||||
/// The passed end range is allowed to be out of bounds, in which case
|
||||
/// The passed end range is allowed to be out of bounds, in which case
|
||||
/// it will be clipped to make it valid.
|
||||
#[inline]
|
||||
pub(crate) fn docid_range_to_position_range(&self, range: Range<DocId>) -> Range<u32> {
|
||||
|
||||
@@ -179,7 +179,7 @@ impl<T: MonotonicallyMappableToU128> MultiValuedU128FastFieldReader<T> {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO having something that looks like MultiColumn trait.
|
||||
// TODO having something that looks like MultiColumn trait.
|
||||
// See discussion in #1679
|
||||
impl<T: MonotonicallyMappableToU128> Column<T> for MultiValuedU128FastFieldReader<T> {
|
||||
fn get_val(&self, _idx: u32) -> T {
|
||||
|
||||
@@ -1839,7 +1839,7 @@ mod tests {
|
||||
.filter(|id| ip_exists(**id))
|
||||
.flat_map(|id| vec![ip_from_id(*id), ip_from_id(*id)])
|
||||
.collect();
|
||||
assert_eq!(num_ips, expected_multi_ips.len() as u64);
|
||||
assert_eq!(num_ips, expected_multi_ips.len() as u32);
|
||||
|
||||
expected_multi_ips.sort();
|
||||
all_ips.sort();
|
||||
|
||||
@@ -297,7 +297,7 @@ mod tests {
|
||||
use super::*;
|
||||
use crate::collector::Count;
|
||||
use crate::query::QueryParser;
|
||||
use crate::schema::{Schema, FAST, STORED, STRING};
|
||||
use crate::schema::{IpAddrOptions, Schema, FAST, STORED, STRING};
|
||||
use crate::Index;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user