[−][src]Trait pallet::DocumentLike
Defines methods for building the index schema and creating a tantivy::Document
.
pallet_macros
provides a way to automatically derive this trait.
Associated Types
type IndexFieldsType
The container for an index's fields.
When using pallet_macros
, this is a wrapped Vec<tantivy::schema::Field>
.
Required methods
fn as_index_document(
&self,
index_fields: &Self::IndexFieldsType
) -> Result<Document>
&self,
index_fields: &Self::IndexFieldsType
) -> Result<Document>
Given the specified document and fields container, returns a tantivy::Document
.