Merge pull request #1436 from boraarslan/bora--warmup-fieldnorms

Expose inner file slice for fieldnorms
This commit is contained in:
PSeitz
2022-08-09 02:45:45 -07:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -128,7 +128,8 @@ impl SegmentReader {
})
}
pub(crate) fn fieldnorms_readers(&self) -> &FieldNormReaders {
#[doc(hidden)]
pub fn fieldnorms_readers(&self) -> &FieldNormReaders {
&self.fieldnorm_readers
}

View File

@@ -40,6 +40,11 @@ impl FieldNormReaders {
pub fn space_usage(&self) -> PerFieldSpaceUsage {
self.data.space_usage()
}
/// Returns a handle to inner file
pub fn get_inner_file(&self) -> Arc<CompositeFile> {
self.data.clone()
}
}
/// Reads the fieldnorm associated to a document.