Created
January 7, 2019 20:08
-
-
Save redcho/d7b0fbbc2f54e0822221cb9ac42f85ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int i = 0; i < reader.maxDoc(); i++){ | |
if(((DirectoryReader) reader).isCurrent()){ | |
Document document = reader.document(i); | |
String source = document.getBinaryValue("_source").utf8ToString(); | |
System.out.println(source); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment