Small change to allow you to grab the facet values and counts from any arbitrary search.
The original get_item_facet_values function returned the facet values and document counts for the specified item_type passed to the function.
I added a new function get_search_facet_values that does all the same logic using the result of any search and changed the get_item_facet_values function to build a search string that is passed to the new function.
Small change to allow you to grab the facet values and counts from any arbitrary search. The original get_item_facet_values function returned the facet values and document counts for the specified item_type passed to the function.
I added a new function get_search_facet_values that does all the same logic using the result of any search and changed the get_item_facet_values function to build a search string that is passed to the new function.