Use the new StoredDocument API in the example code.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1408841 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2012-11-13 17:23:22 +00:00
parent 27181e53a0
commit 130df2e8e1
1 changed files with 1 additions and 1 deletions

View File

@ -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();