Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created November 7, 2018 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/464009c05863cf8c7cadea997cd8735c to your computer and use it in GitHub Desktop.
Save GroupDocsGists/464009c05863cf8c7cadea997cd8735c to your computer and use it in GitHub Desktop.
// For complete examples and data files, please go to https://github.com/groupdocs-search/GroupDocs.Search-for-Java
// Loading index
Index index = new Index(Utilities.BOOKS_INDEX);
SearchResults searchResults = index.search("Gregor Samsa");
// List of found files
for (DocumentResultInfo result : searchResults) {
System.out.println(result.getFileName());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment