Online stores
Typos, facets that keep counting, price sliders and sorts, for catalogs from a hundred products to a million.
Real estate, rentals, jobs, directories and store locators: people search near them, inside the map they're looking at, or by name and street. Try it on 35,000 McDonald's restaurants.
near meBrowser searches can start near the visitor's city, from their IP address, with no permission prompt. Add a radius to keep it close.
this map areaKeep what the map shows, nearest its center first. A zoomed-out map searches as fast as a city.
2 bedrooms · under $2,500Facets and price ranges as in any search. With a query, the best matches come first, ordered by distance.
One record per listing or place, with its location. The recipe in the docs goes through every field.
{ "objectID": "listing-48213", "title": "Bright two-bedroom flat", "type": "Apartment", "area": "Reykjavík 105", "address": "Laugavegur 120", "price": 2150, "bedrooms": 2, "floorArea": 74, "listedAt": 1790812800, "_geoloc": { "lat": 64.1432, "lng": -21.9126 }, "url": "/rent/listing-48213"}
_geoloc holds lat and lng, and becomes the index's location field.Choose the settings once, from your server or the dashboard. Searches then run straight from the browser with the index's public ID.
await listings.replaceSettings({ ...(await listings.getSettings()), searchableAttributes: [ { field: "title", weight: 8 }, { field: "area", weight: 6 }, { field: "address", weight: 4 }, ], facetFields: ["type", "area", "bedrooms"], filterFields: ["price", "floorArea"], locationField: "_geoloc", didYouMean: true,})
const results = await client.search({ near: { visitor: true, radius: 5000 }, filters: { bedrooms: { gte: 2 }, price: { lte: 2500 } }, facets: ["type", "area"],})results.hits[0].distance // 640, in meters
Not for their city: browser searches can use the visitor's approximate location from their IP address. For a precise position, ask the browser for it and send the coordinates.
Any. Search with the map's bounds when it moves. The React SDK's useGeoSearch keeps the search and the URL in step with the map.
Yes, including Free.
Yes: a record per store, with services such as a drive-through as true or false for facets, searched near the visitor. The demo is one, for 35,000 restaurants.
Typos, facets that keep counting, price sliders and sorts, for catalogs from a hundred products to a million.
Make each section a record, and a search lands on the right heading with the matching words highlighted.
Search titles, authors and abstracts, narrow by category and year, and sort by citations instead of price.
Upload your records, copy a public ID, and put search on your site today.