* use term counts instead of facet priority to determine which facet term to redirect a keyword search to
* better function, cache group and variable naming
comments and spacing