public SearchInAppResponse searchInApp ( int appId , String query , Boolean counts , Boolean highlights , Integer limit , Integer offset , ReferenceTypeSearchInApp refType , String searchFields ) { WebResource resource = getResourceFactory ( ) . getApiResource ( "/search/app/" + appId + "/v2" ) ; resource = resource . queryParam ( "query" , query ) ; if ( counts != null ) { resource = resource . queryParam ( "counts" , counts ? "1" : "0" ) ; } if ( highlights != null ) { resource = resource . queryParam ( "highlights" , highlights ? "1" : "0" ) ; } if ( limit != null ) { resource = resource . queryParam ( "limit" , limit . toString ( ) ) ; } if ( offset != null ) { resource = resource . queryParam ( "offset" , offset . toString ( ) ) ; } if ( refType != null ) { resource = resource . queryParam ( "ref_type" , refType . toString ( ) ) ; } if ( searchFields != null && ! searchFields . equals ( "" ) ) { resource = resource . queryParam ( "search_fields" , searchFields ) ; } return resource . get ( SearchInAppResponse . class ) ; }
Searches in all items files and tasks in the application . The objects will be returned sorted descending by the time the object had any update .