using query 3.0 try-catch
rewrote facets:getFacetCategories() for better index usage