pub fn ensure_fulltext_index<Field>(&self, field: Field, min_length: u32) -> Result<Index>
    where
        Field: Into<String>,
    {
        self.execute(CreateIndex::new(
            self.name(),
            NewFulltextIndex::with_field(field, min_length),
        ))
    }
/// Creates a fulltext index for this collection if it does not exist
/// already.
///
/// # Arguments
///
/// * `field` : An attribute paths
/// * `min_length` : Minimum character length of words to index
Creates a fulltext index for this collection if it does not exist
already.
Creates a fulltext index for this collection if it does not exist already .
pub fn ensure_fulltext_index<Field>(&self, field: Field, min_length: u32) -> Result<Index>
    where
        Field: Into<String>,
    {
        self.execute(CreateIndex::new(
            self.name(),
            NewFulltextIndex::with_field(field, min_length),
        ))
    }
pub fn ensure_fulltext_index < Field > ( & self , field : Field , min_length : u32 ) -> Result < Index > where Field : Into < String > , { self . execute ( CreateIndex :: new ( self . name ( ) , NewFulltextIndex :: with_field ( field , min_length ) , ) ) }
Creates a fulltext index for this collection if it does not exist
already.
Creates a fulltext index for this collection if it does not exist already .
&self
field
Field
min_length
u32
&self
field
Field
min_length
u32