Improve Facets functions. (not supported in preprocessFilter)

manojlds commented :

Would like to have support for has(facet1) to check if a facet exists.