pub fn facet_reader(&self, field: Field) -> Option<FacetReader> {
        let field_entry = self.schema.get_field_entry(field);
        if field_entry.field_type() != &FieldType::HierarchicalFacet {
            return None;
        }
        let term_ords_reader = self.fast_fields().u64s(field)?;
        let termdict = self.termdict_composite
            .open_read(field)
            .map(|source| TermDictionary::from_source(&source))
            .unwrap_or_else(TermDictionary::empty);
        let facet_reader = FacetReader::new(term_ords_reader, termdict);
        Some(facet_reader)
    }
/// Accessor to the `FacetReader` associated to a given `Field`.
Accessor to the `FacetReader` associated to a given `Field`.
Accessor to the ` FacetReader ` associated to a given ` Field ` .
pub fn facet_reader(&self, field: Field) -> Option<FacetReader> {
        let field_entry = self.schema.get_field_entry(field);
        if field_entry.field_type() != &FieldType::HierarchicalFacet {
            return None;
        }
        let term_ords_reader = self.fast_fields().u64s(field)?;
        let termdict = self.termdict_composite
            .open_read(field)
            .map(|source| TermDictionary::from_source(&source))
            .unwrap_or_else(TermDictionary::empty);
        let facet_reader = FacetReader::new(term_ords_reader, termdict);
        Some(facet_reader)
    }
pub fn facet_reader ( & self , field : Field ) -> Option < FacetReader > { let field_entry = self . schema . get_field_entry ( field ) ; if field_entry . field_type ( ) != & FieldType :: HierarchicalFacet { return None ; } let term_ords_reader = self . fast_fields ( ) . u64s ( field ) ? ; let termdict = self . termdict_composite . open_read ( field ) . map ( | source | TermDictionary :: from_source ( & source ) ) . unwrap_or_else ( TermDictionary :: empty ) ; let facet_reader = FacetReader :: new ( term_ords_reader , termdict ) ; Some ( facet_reader ) }
Accessor to the `FacetReader` associated to a given `Field`.
Accessor to the ` FacetReader ` associated to a given ` Field ` .
&self
field
Field
&self
field
Field