G
G
Gennady Dorokhin2021-03-16 17:35:41
1C-Bitrix
Gennady Dorokhin, 2021-03-16 17:35:41

How to subscribe to search results in a smart filter?

There is a real estate website.
We use the Smart filter for filtering https://skr.sh/s76t3edqAH9
The customer asks to do it like on an auto ru, that is, suppose a person chooses "an apartment from 3 to 5 million, a three-ruble note" and subscribes to his soap. If such objects appear, then he receives a notification.
Is it realistic to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2021-03-16
@eXtatic

The search result is a set of elements that have certain properties.
This set must be assigned to the user, for example on highload blocks.
Execute by cron for all users with the getlist set, recording the id of new items created recently, equal to the command execution interval in cron, where the fetch is preceded by an array of properties to filter the results. If new elements have appeared, we send a letter...
-
If there are few users on the site and a large load is not expected, then you can perform the above "on the fly" on the "adding a new element to the infoblock" event.
Well, of course, add to the user interface - subscribe buttons, which will create records in highload for subsequent getlist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question