-
Notifications
You must be signed in to change notification settings - Fork 2
Search
alex-caroline edited this page Jul 13, 2018
·
4 revisions
var foodQueryServiceClient = new FoodQueryServiceClient();
var foodListResponse = foodQueryServiceClient.Search(new FoodsSearchRequest {SearchText = "Oats"});
var foodQueryServiceClient = new FoodQueryServiceClient();
var foodsSearchRequest = new FoodsSearchRequest
{
SearchText = "Oats",
StartIndex = 1,
PageSize = 10
};
var foodsListResponse = foodQueryServiceClient.Search(foodsSearchRequest);
var foodQueryServiceClient = new FoodQueryServiceClient();
var foodsSearchRequest = new FoodsSearchRequest
{
SearchText = "Oats",
FilterByFoodTypes = new[] {FoodType.Recipe},
StartIndex = 1,
PageSize = 10
};
var foodsListResponse = foodQueryServiceClient.Search(foodsSearchRequest);
var foodQueryServiceClient = new FoodQueryServiceClient();
var foodsSearchRequest = new FoodsSearchRequest
{
SearchText = "Oats",
FilterByFoodTypes = new[] {FoodType.Recipe},
DataSourceFilter = new [] {"UserFoods"},
StartIndex = 1,
PageSize = 10
};
var foodsListResponse = foodQueryServiceClient.Search(foodsSearchRequest);