Added the first implementation of term facets to the functionality