/** * Returns a collection of current search jobs. * * @return A collection of search jobs. */ public JobCollection getJobs() { return getJobs((CollectionArgs)null); }
/** * Returns a collection of current search jobs. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of search jobs. */ // NOTE: This overload exists primarily to provide better documentation // for the "args" parameter. public JobCollection getJobs(CollectionArgs args) { return getJobs((Args)args); }
/** * Creates an asynchronous search job using the given query and * search arguments. * * @param query The search query. * @param args The search arguments. * @return The search job. */ public Job search(String query, Map<String, Object> args) { args = Args.create(args); return this.getJobs().create(query, args); }