Calling search(String)
on a folder will recursively search the
folder and its children. To search the user's entire account, simply search
their root folder.
BoxFolder rootFolder = BoxFolder.getRootFolder(api);
Iterable<BoxItem.Info> results = rootFolder.search("my query");
for (BoxItem.Info result : results) {
// Do something with the search result.
}
Advanced is not yet implemented, but is coming soon.