mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-05-25 20:50:43 +00:00
clippy
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use columnar::MonotonicallyMappableToU64;
|
||||
use common::JsonPathWriter;
|
||||
use itertools::Itertools;
|
||||
use tokenizer_api::BoxTokenStream;
|
||||
@@ -16,7 +15,7 @@ use crate::postings::{
|
||||
};
|
||||
use crate::schema::document::{Document, ReferenceValue, Value};
|
||||
use crate::schema::indexing_term::IndexingTerm;
|
||||
use crate::schema::{FieldEntry, FieldType, Schema, DATE_TIME_PRECISION_INDEXED};
|
||||
use crate::schema::{FieldEntry, FieldType, Schema};
|
||||
use crate::store::{StoreReader, StoreWriter};
|
||||
use crate::tokenizer::{FacetTokenizer, PreTokenizedStream, TextAnalyzer, Tokenizer};
|
||||
use crate::{DocId, Opstamp, SegmentComponent, TantivyError};
|
||||
|
||||
@@ -20,6 +20,11 @@ use crate::DateTime;
|
||||
/// The serialized value `ValueBytes` is considered everything after the 4 first bytes (term id).
|
||||
#[derive(Clone, Hash, PartialEq, Ord, PartialOrd, Eq)]
|
||||
pub struct Term(Vec<u8>);
|
||||
impl Default for Term {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
/// The number of bytes used as metadata by `Term`.
|
||||
const TERM_METADATA_LENGTH: usize = 5;
|
||||
|
||||
Reference in New Issue
Block a user