search

Page where users can search for listings using several filters

Search Page Overview

This is public page for browsing home listings. By default, this page shows all active Listings on the platform and can show a subset of listings if the user has specified any search filters. When a user clicks on listing to visit its page, a start and end parameter will be sent which contain the Available From and Available To date values (if available) inputted by the user.

Key Elements

RepeatingGroup Listings

  • Shows all active listings on the platform which match the user inputted search criteria

  • Data source notes

    • The Inactive_user? and Inactive_admin? constraints check to see if the listing has not been deactivated by either the listing owner or an app admin

    • The Price and Location fields are both checked against the location input and the price range slider input

    • The advanced filter checks to see that the listing does not have any Blocked Dates which are contained within the list of Blocked Dates from RepeatingGroup Blocked Dates (Hidden)

      • The purpose of this filter is to eliminate any Listings which are not available for booking within the date range specified by the user

      • This is only relevant if the user has specified an Available From and Available To date

RepeatingGroup Blocked Dates (Hidden)

  • Contains the list of Blocked Dates whose range overlaps with the range created from the user-inputted Available From and Available To dates

  • The purpose of this is to identify all Blocked Dates for listings which overlap with the specified availability range. This is used solely for the filtering mentioned above

Last updated