Struct perlin::index::boolean_index::IndexBuilder [] [src]

pub struct IndexBuilder<TTerm, TStorage> { /* fields omitted */ }

IndexBuilder is used to build BooleanIndex instances

Methods

impl<TTerm, TStorage> IndexBuilder<TTerm, TStorage> where TTerm: Ord, TStorage: Storage<IndexingChunk>
[src]

Creates a new instance of IndexBuilder

impl<TTerm, TStorage> IndexBuilder<TTerm, TStorage> where TTerm: Ord + Hash, TStorage: Storage<IndexingChunk> + Volatile + 'static
[src]

Creates a volatile instance of BooleanIndex At the moment BooleanIndex does not support adding or removing documents from the index. So all index which should be indexed need to be passed to this method

impl<TTerm, TStorage> IndexBuilder<TTerm, TStorage> where TTerm: Ord + ByteDecodable + ByteEncodable + Hash, TStorage: Storage<IndexingChunk> + Persistent + 'static
[src]

Enables a persistent index at the passed path. at must be either a prefilled directory if the load method is to be called or an empty directory if a new index is created with create_persistence

A new index is created and saved in the directory passed to the persist method Returns a BuilderError if persist was not called or if directory is not empty

Loads an index from a previously filled directory. Returns a BuilderError if directory is empty or does not contain valid data