This commit is contained in:
Pascal Seitz
2022-11-14 14:14:39 +08:00
parent ce10fab20f
commit b7d0dd154a
4 changed files with 5 additions and 5 deletions

View File

@@ -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> {

View File

@@ -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 {

View File

@@ -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();

View File

@@ -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)]