Example #1
0
 public Task<SearchResults> Search(string query, int limit = 10, SearchFilter filter = null, IEnumerable<ModelType> modelTypes = null, DateTime? since = null, bool partial = false)
 {
     return _client.RequestAsync<SearchResults>(new SearchRequest(query, limit, filter, modelTypes, since, partial));
 }
Example #2
0
		public Task<IEnumerable<Organization>> Search(string query, int limit = 10, SearchFilter filter = null, bool partial = false)
		{
			return _restClient.RequestAsync<SearchResults>(new SearchRequest(query, limit, filter, new[] { ModelType.Organizations }, null, partial))
				.ContinueWith<IEnumerable<Organization>>(r => r.Result.Organizations);		
		}