You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2012/11/13 18:23:23 UTC
svn commit: r1408841 - /lucene/dev/trunk/lucene/core/src/java/overview.html
Author: jpountz
Date: Tue Nov 13 17:23:22 2012
New Revision: 1408841
URL: http://svn.apache.org/viewvc?rev=1408841&view=rev
Log:
Use the new StoredDocument API in the example code.
Modified:
lucene/dev/trunk/lucene/core/src/java/overview.html
Modified: lucene/dev/trunk/lucene/core/src/java/overview.html
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/overview.html?rev=1408841&r1=1408840&r2=1408841&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/overview.html (original)
+++ lucene/dev/trunk/lucene/core/src/java/overview.html Tue Nov 13 17:23:22 2012
@@ -54,7 +54,7 @@ to check if the results are what we expe
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();