pub fn ensure_geo_location_index<Loc>(
        &self,
        location_field: Loc,
        geo_json: bool,
    ) -> Result<Index>
    where
        Loc: Into<String>,
    {
        self.execute(CreateIndex::new(
            self.name(),
            NewGeoIndex::with_location_field(location_field, geo_json),
        ))
    }
/// Creates a geo spatial index for this collection if it does not exist
/// already.
///
/// # Arguments
///
/// * `location_field` : The attribute path of the location field
/// * `geo_json` : If a geo-spatial index on a location is constructed and
///   `geo_json` is true, then the order within the array is longitude
///   followed by latitude.
Creates a geo spatial index for this collection if it does not exist
already.
Creates a geo spatial index for this collection if it does not exist already .
pub fn ensure_geo_location_index<Loc>(
        &self,
        location_field: Loc,
        geo_json: bool,
    ) -> Result<Index>
    where
        Loc: Into<String>,
    {
        self.execute(CreateIndex::new(
            self.name(),
            NewGeoIndex::with_location_field(location_field, geo_json),
        ))
    }
pub fn ensure_geo_location_index < Loc > ( & self , location_field : Loc , geo_json : bool , ) -> Result < Index > where Loc : Into < String > , { self . execute ( CreateIndex :: new ( self . name ( ) , NewGeoIndex :: with_location_field ( location_field , geo_json ) , ) ) }
Creates a geo spatial index for this collection if it does not exist
already.
Creates a geo spatial index for this collection if it does not exist already .
&self
location_field
Loc
geo_json
bool
&self
location_field
Loc
geo_json
bool