title: Algolia - WordPress - how can I get the actual query into JS variable to work with it further in the hits template?
body: <p>I would like to do some interesting stuff with the hits that are being displayed based on the search query that user is not only typing into search box but actually filtering using the instant search filters. I have filter based on hierarchical events_location taxonomy. Based on what user selected I would get the info in JS variable that I can then further use to do other operations in the hits div, specifically on each hit card. </p>
  
  <p>So my URL when searching updates like this:
  /what-to-see/?q=&amp;idx=sdbeta_posts_events&amp;p=0&amp;hFR%5Btaxonomies_hierarchical.events_calendar.lvl0%5D%5B0%5D=JUL%204&amp;hFR%5Btaxonomies_hierarchical.events_category.lvl0%5D%5B0%5D=All&amp;hFR%5Btaxonomies_hierarchical.events_locations.lvl0%5D%5B0%5D=Paddock%20Stage</p>
  
  <p>I could potentially take the URL and extract the data from it, but I am sure there is more elegant way of working with the query.</p>