diff --git a/lucene/core/src/java/overview.html b/lucene/core/src/java/overview.html index 7db8f459b40..7bfa868a18f 100644 --- a/lucene/core/src/java/overview.html +++ b/lucene/core/src/java/overview.html @@ -54,7 +54,7 @@ to check if the results are what we expect):

assertEquals(1, hits.length); // Iterate through the results: for (int i = 0; i < hits.length; i++) { - Document hitDoc = isearcher.doc(hits[i].doc); + StoredDocument hitDoc = isearcher.doc(hits[i].doc); assertEquals("This is the text to be indexed.", hitDoc.get("fieldname")); } ireader.close();