Struct elasticlunr::IndexBuilder
[−]
[src]
pub struct IndexBuilder { /* fields omitted */ }
A builder for an Index
with custom parameters.
Methods
impl IndexBuilder
[src]
fn new() -> Self
[src]
fn save_docs(self, save: bool) -> Self
[src]
Set whether or not documents should be saved in the Index
.
fn add_field(self, field: &str) -> Self
[src]
Add a document field to the Index
.
fn set_ref(self, ref_field: &str) -> Self
[src]
Set the key used to store the document reference field.
fn build(self) -> Index
[src]
Build an Index
from this builder.