You keep data current by running again, on your own schedule: every hour, every day or every week. What a new run delivers depends on the type.

Reviews

Delta runs

Send the hashes from your last result in options.last_review_hashes. The run stops when it reaches one of them and delivers only what is newer.
  1. Save last_review_hashes from each result. It holds the hashes of the newest reviews this run delivered.
  2. Send them on the next run of the same business on the same publisher.
  3. Nothing newer means outcome 461. That is a success.
  4. Omit the hashes to collect every review again.
A 461 run delivers no reviews, so its last_review_hashes is empty. Keep the hashes you already have. Only replace them when a run delivers reviews.
matches tells you whether the run reached your cutoff. It is true when a page met a hash you sent. A full run (no hashes sent) is always false. With 461 it means “nothing new”. With 200 it means “new reviews, then your cutoff”.

The review hash

review_hash is the identity of a review. It is an MD5 of the business, the publisher, the author’s name, the review text and the rating. On Google Maps it also covers Google’s review id and the review’s date.
  • No two reviews of a business share a hash.
  • An edited review gets a new hash, so it comes back on the next delta run.
  • A reply added to an old review does not change its hash.
Use review_hash as the key of your reviews table.

Documents

We compare the source’s published index with your last run and label each file new, changed, unchanged or removed. An unchanged index is outcome 461, and the files you hold are still current.

Jobs

Every posting on the board is delivered, labelled against your last run of the same board and the same scope:
  • change is new, changed or unchanged.
  • changed_fields names exactly what moved, so a pay rise is different from a re-worded description.
  • A posting whose listing (title, pay, dates) is the same as last time is not fetched again. Its record from that run is delivered as it was, marked unchanged, and counted as reused.
  • Postings that closed are not in this run. Their ids are in the run’s index at index_url:
A first run of a board and scope has nothing to compare with: every posting is new, and a first run never returns 461.
The comparison is per board and per scope. A run narrowed to one department is compared with your last run of that department, never with a whole-board run.

Products

Each run is the catalogue as it stands now. There is no cutoff to send and no 461. Compare on your side using the record identity, which stays the same across runs:
These keys come from the source’s own identifiers, never from a title. A renamed product is still the same record.