How to retrieve Apache Solr's current search filters? I'm using Apache Solr Search, Search API and Facet API.

Is there a way to retrieve the current search filters being used when using Apache Solr on Drupal?

For example: I have a website using facets which reference a taxonomy called colours.  In this facet, there's a list of colours - if I select Green, this generates an Apache Solr search - using green as the filter. 

www.example-website.com/?f[0]=field_colour%3A2712.......etc

When the Solr search is created - I guess, I could grab the term id 2712 from the URL using GET - but there must be a cleaner way.

Any ideas?
Sounds like you're writing a module to do this?

If so, if you're implementing something like the apachesolr_query_alter(&amp;$query) hook or something like that, which gives you access to the search query, you can use 

function [getFilters][1]($name = NULL)


Note that the name parameter is optional: Returns all filters matching $name, if set; otherwise, returns all filters.