mirror of https://github.com/apache/lucene.git
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:
parent
27181e53a0
commit
130df2e8e1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue