Add debug method to get indexed document