Skip to content

The Discovery Engine

The GoatRent Search Microservice is the central discovery engine powering the ecosystem. It connects users seeking rentals, sales, or services with local hosts across the globe.

Executive Summary

Built on .NET 10, PostGIS, and Clean Architecture, the engine delivers sub-100ms response times, intelligent geospatial fallbacks, automated cold-start handling, and SEO optimization. This document explains the full end-to-end journey of how the search engine handles every user interaction—from initial arrival via Google SEO, to discovery browsing, filtering, distance calculation, map clustering, and dead-end prevention.

How Discovery Works

A seamless, map-centric experience that dynamically adapts to your surroundings.

1. Instant Local Insights

We do not want you to guess what might be available in your neighborhood. To reduce friction and make discovery effortless, our engine instantly analyzes active local inventory the moment you click the search bar. Before you even type a single word, it highlights the top trending and most populated categories in your immediate area, guiding you directly to where the local supply is most abundant.

2. Calendar & Date-Aware Availability

GoatRent doesn't just search for gear—it searches for available listings for your exact trip dates. When you select your start and end dates, the search engine automatically checks host calendar rules and booked reservations in real-time, filtering out unavailable gear so you only browse listings that are ready for your booking.

3. The "Cascading Fallback" Strategy

To respect your time and location, our engine utilizes a geographic "cascading fallback" system. This means it always prioritizes searching your immediate "nearby" vicinity first. However, we never want to leave you at a dead end. If you are looking for a highly specific item—like a tractor to rent in Jersey City—and the local inventory happens to be empty, the engine automatically expands its search radius. It will smoothly cast a wider net to show you the closest available options in neighboring cities or even across state lines.

4. Smart Category Expansion

If a niche category or item you are searching for is unavailable or low in inventory, our intelligent engine leverages GoatRent's category tree to pivot your search rather than dropping you on an empty page. It automatically suggests highly relevant related alternatives—for example, if "Road Bikes" are low in stock, it highlights sibling categories with active local inventory such as "Mountain Bikes" or "Electric Bikes".

5. Real-Time Distance Context & Privacy

To ensure you always have complete geographic context, the search engine calculates and returns the real-time distance for every single listing card. At the same time, we protect host privacy by rendering approximate location circles (~500m radius) on public maps. A host's exact residential address is kept private until a booking is confirmed.

6. Smooth Interactive Map Clustering

When exploring items on the interactive map, our engine dynamically groups dense listings into single cluster nodes when zoomed out. This keeps map rendering fast, fluid, and memory-efficient across all mobile devices and browsers, allowing users to effortlessly zoom from nationwide coverage down to street-level neighborhood pins.

Summary for Stakeholders

A high-level overview of the business value driven by our core search features.

FeatureWhat It DoesWhy It Matters
Semantic SEO URLsAutomatic `/rent/bikes/in/us/ny/new-york` linksFree organic customer traffic from Google searches.
Smart Dynamic SitemapsTells Google only about active marketsMaximizes Google search rankings; zero wasted crawl budget.
Nearest City PinningAuto-connects rural users to nearby inventoryZero empty screens; higher customer conversion.
Related Category ExpansionSuggests alternative categories with active inventoryKeeps shoppers browsing even in niche categories.
Paid Promotion PriorityDisplays `Top` and `Boost` listings at top of resultsDirect revenue generation from host advertising packages.
Host Privacy ObfuscationApproximates map pin locations until bookingBuilds host trust and protects residential privacy.