The use of geospatial features has significantly increased user engagement, with many applications now relying on location-based recommendations. However, traditional radius-based queries can lead to imprecise results, highlighting the need for more precise search methods like polygon-based searches. Geospatial geometry/polygon search allows users to look for documents within a closed polygon-shaped object defined by coordinates, enabling more accurate and targeted searches in various use cases such as real estate, gaming, analytics, advertising, and smart cities. The popularity of geospatial searches has grown over the years, with 95% of apps in China requesting access to user locations. Creating geospatial indexes is a crucial step in utilizing polygon-based searches, which can be achieved using Couchbase's Full-Text Search (FTS) REST API or native SDKs. The search query format allows users to specify coordinates and polygons using the `polygon_points` attribute, enabling precise filtering of documents based on location. Geospatial ring/donut shaped search can also be used to filter specific areas out by specifying inner polygon coordinates within a boolean query's "must_not" block.