I am trying to get all confirmed orders using the following code:
List<Guid> returnList = null;
var defaultLanguage = _languageService.GetDefault();
var request = new QueryRequest(defaultLanguage.SystemId, ECommerceSearchDomains.Orders, token);
request.FilterTags.Add(new Tag(TagNames.OrderStatus, (short)OrderState.Confirmed));
var searchResult = Solution.Instance.SearchService.Search(request);
if (searchResult != null)
{
returnList = searchResult.Hits.Select(x => new Guid(x.Id)).ToList();
}
return returnList ?? new List<Guid>();
The search return 0 hits, eventhough there are a number of orders in the database with the confirmed status. Trying to search for a specific order id also returns 0 hits.
Litium version: 7.1