There's no built-in method for that, you'd have to query and compare; or do full index comparison using the scroll / PIT APIs.