I must be missing something. I have:
const requestOptions = {
hitsPerPage: 10,
queryLanguages: ["en"],
removeStopWords: true,
filters: `accepting_orders:true`,
};
index.search(searchQuery, {
...requestOptions,
aroundLatLng: `${region.latitude}, ${region.longitude}`,
aroundRadius: radius,
})
.then(({ hits }) => {
console.log("Algolia hits", hits);
});
When I remove filters: accepting_orders:true
I indeed get 10 results, adding the filter returns an empty array.
My records look something like this:
objectID: "asdasdasdasdasdasd"
name: "My Restaurant"
accepting_orders: true
phone_number: "(555) 555-5555"
_geoloc: { lat: "34.178953", lng: "-118.309509" }
Am I supposed to add something to the dashboard to enable filtering by the accepting_orders boolean?