Eager load application when indexing.

[ fix #2807 ]