fix IndexReader closed before searchResult was read.