MONGOC_INDEX_OPT_GEO_T(3)

πŸ¦‹ MONGOC_INDEX_OPT_GEO_T(3) πŸ¦‹

okay bestie so you're in the libmongoc section of the manual and this little page is all about mongoc_index_opt_geo_t β€” the struct that lets you tune your GEO indexes. it's giving very niche, very powerful, very iykyk. let's get into it ✨


✨ SYNOPSIS ✨

first thing's first, you gotta pull in the header:

#include <mongoc/mongoc.h>

and here's the struct in all its glory, no cap, every field exactly as it lives:

typedef struct {
   uint8_t twod_sphere_version;
   uint8_t twod_bits_precision;
   double twod_location_min;
   double twod_location_max;
   double haystack_bucket_size;
   uint8_t *padding[32];
} mongoc_index_opt_geo_t;

she's a whole vibe πŸŽ€


πŸ’– DESCRIPTION πŸ’–

so like, this structure contains the options that may be used for tuning a GEO index. that's it, that's the whole job. it's not the main character of the index world, but it is the main character of geo tuning, and honestly? obsessed.

lowkey reminder: those padding[32] bytes are part of the struct, so don't go renaming or rearranging anything, bestie. she is exactly as she is πŸ’…

🌸 SEE ALSO 🌸

  • mongoc_index_opt_t
  • mongoc_index_opt_wt_t

go read those next, they're the sibling structs and they also slay 🫢


πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc β€” the icons themselves πŸ’–


2009-present, MongoDB, Inc. β€” yeah, they've been at this a minute. iconic behaviour, honestly πŸ‘‘


and that's the page, bestie!! 🌸 this was MONGOC_INDEX_OPT_GEO_T(3) from libmongoc, version 1.30.13, dated Oct 09, 2026. go tune those geo indexes, you've absolutely got this πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from