#Yisrael and any and everyone else.
My site is www.PoolSafe2Swim.com The page I am having issues with is my Book A Member Hotel. I am having trouble getting my collection to upload into my repeater. Even in preview it takes fooorrrrreeeevvver. It won't even load in the published view. I want visitors to be able to search for a hotel by the hotel's name, and by its city and state. Ideally, I would like visitors to put in a search much like what happens on Google Maps/Places and bring up hotels in a 5 mile radius and have them displayed in my repeater but I haven't gotten that far yet. Here is my code for what I have now:
import wixData from 'wix-data';
$w.onReady(function () {
});
export function ihotel_keyPress_1(event, $w) {
let searchValue = $w("#ihotel").value;
$w("#dataset1").setFilter(wixData.filter().contains("title", searchValue));
}
export function icity_keyPress(event, $w) {
let searchValue = $w("#icity").value;
$w("#dataset1").setFilter(wixData.filter().eq("city", searchValue));
}
export function iState_change_1(event, $w) {
let searchValue = $w("#iState").value;
$w("#dataset1").setFilter(wixData.filter().eq("state", searchValue));
}
Is there anything I can do to speed up display of the search results in my repeater? And, how can I add the other search components that I would like to add? Thanks.
Hi,
Check out this video about creating a search for your database.