Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 676 Bytes

Search.md

File metadata and controls

16 lines (14 loc) · 676 Bytes

Search

Search for files and folders

BoxApiSearch searchApi = new BoxApiSearch(session);
BoxList searchResults = searchApi.getSearchRequest("search string")
        .setOffset(0)   // default is 0
        .setLimit(100) // default is 30, max is 200
        // Optional: Specify advanced search parameters. See BoxRequestsSearch.Search for the full list of parameters supported.
        .limitAncestorFolderIds(new String[]{"folderId1", "folderId2"}) // only items in these folders will be returned.
        .limitFileExtensions(new String[]{"jpg", "png"}) // only files with these extensions will be returned.
        .send();