Add doc for publisher and locality