...
Need to have criteria based re-indexing because in any production environments we would not be doing or needing entire data reindexing.
It would be for either for one tenant or for certain criteria like all payments within a date range.
Added a plainsearch API endpoints for multiple tenantIds and date range wise reindexing.
fromDate() and toDate() are to be converted to respective unix timestamps.
Query parameters are tenantId(can be single or multiple), fromDate and toDate which are to be converted to respective unix timestamps.
Basically Unix timestamp is a method to track time as running total of seconds. The count starts from Jan 1st 1970, which is considered as Unix Epoch. Unix timestamp is the number of seconds elapsed between a given date and unix epoch.
...