Hi DW folks,
I am trying to build a service for acccessing products and facets from an ashx handler, this should allow me to provide some custom JSON to my frontend developer.
So far I am able to do searches using:
var queryService = new QueryService();
var search = queryService.Search(
query,
facets,
new Dictionary<string, object>
{
{ "param1", "value1" },
{ "param2", "value2" },
},
0,
24);
This returns the products with the parameters matching, however I would like to access my facets including the options, which is not returned by above code.
When i debug the following code, I see the facets but not the options (the facets and options can be retrieved from the product catalouge module).
var facets = queryService.LoadFacets("somepath/Products.facets");
How can I access the options from my handler?
Thank you ;)