mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Introduce the AttrCount type
This commit is contained in:
committed by
Clément Renault
parent
5b9fff6636
commit
11f3d7782d
@ -12,7 +12,7 @@ pub struct RawDocument {
|
||||
pub id: DocumentId,
|
||||
pub matches: SharedMatches,
|
||||
pub highlights: Vec<Highlight>,
|
||||
pub fields_counts: SetBuf<(SchemaAttr, u64)>,
|
||||
pub fields_counts: SetBuf<(SchemaAttr, u16)>,
|
||||
}
|
||||
|
||||
impl RawDocument {
|
||||
@ -101,7 +101,7 @@ impl fmt::Debug for RawDocument {
|
||||
pub fn raw_documents_from(
|
||||
matches: SetBuf<(DocumentId, TmpMatch)>,
|
||||
highlights: SetBuf<(DocumentId, Highlight)>,
|
||||
fields_counts: SetBuf<(DocumentId, SchemaAttr, u64)>,
|
||||
fields_counts: SetBuf<(DocumentId, SchemaAttr, u16)>,
|
||||
) -> Vec<RawDocument> {
|
||||
let mut docs_ranges: Vec<(_, Range, _, _)> = Vec::new();
|
||||
let mut matches2 = Matches::with_capacity(matches.len());
|
||||
|
Reference in New Issue
Block a user