Apache Solr open-source search software
Use the new StoredDocument API in the example code.
Adrien Grand130df2e8e1c3
diff --git a/lucene/core/src/java/overview.html b/lucene/core/src/java/overview.htmlindex 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):</p>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();