Articles on: Saved Searches

Preventing Duplicate Saved Saved Searches in the Repliers API

In Repliers' API, the Saved Search feature allows you to save a user’s property search criteria and receive alerts when new listings are available that match their preferences. This feature enhances the user experience by automating the process of tracking and notifying them about relevant properties.

Default Behavior for Saved Searches



By default, if a new saved search is created with the same or similar property search criteria as an existing saved search, the system will update the existing search rather than creating a new one. This behavior ensures that users can maintain a consolidated set of saved searches without having multiple, redundant searches with the same filters.

Example:



Let’s say you create a saved search with the following criteria:

minPrice: 1,000,000
maxPrice: 1,200,000
minBeds: 4
maxBeds: 4
minBaths: 4
maxBaths: 4
city: Los Angeles

If you then create another saved search with the same filters, but change the city to Glendale:

city: Glendale

Instead of creating a new saved search, the existing search will be updated to include both cities: Los Angeles, Glendale.

Similarly, if the minPrice or maxPrice is changed in the new search, a new saved search will be created. This ensures that changes to certain criteria (like price) will result in a new search, while other changes (like adding cities) will update the existing search.

Disabling the Default Behavior



If you prefer that the system always creates a new saved search, regardless of how similar the search criteria are, this default behavior can be disabled.

To disable the behavior and ensure that a new saved search is always created for each new set of criteria, please contact our support team.

Contact Support



If you have any questions or need assistance with this feature, reach out to our support team at [support@repliers.com] or use the contact form on our website.

Updated on: 29/11/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!