filterData.setSubscriptionInclusions(ImmutableSet.of(this.subscriptionId));
payload.setIndexRecordFilterData(filterData);
try {
eventPublisherManager.getEventPublisher(repo, referrer.getTable()
).publishEvent(referrer.getRecordId().toBytes(), payload.toJsonBytes());
} catch (Exception e) {
// We failed to put the message: this is pretty important since it means the record's index
// won't get updated, therefore log as error, but after this we continue with the next one.
log.error("Error putting index message on queue of record " + referrer, e);
//metrics.errors.inc();