FacetHelper { public static String parseFacetField(String columnName) { return columnName.substring(QueryConstants.REP_FACET.length() + 1, columnName.length() - 1); } private  FacetHelper(); static FacetsConfig getFacetsConfig(NodeBuilder definition); static Facets getFacets(IndexSearcher searcher, Query query, QueryIndex.IndexPlan plan,
                                   SecureFacetConfiguration secureFacetConfiguration); static String parseFacetField(String columnName); static final String ATTR_FACET_FIELDS; }
@Test public void testParseFacetField() throws Exception { String field = FacetHelper.parseFacetField("rep:facet(text)"); assertNotNull(field); assertEquals("text", field); field = FacetHelper.parseFacetField("rep:facet(jcr:title)"); assertNotNull(field); assertEquals("jcr:title", field); field = FacetHelper.parseFacetField("rep:facet(jcr:primaryType)"); assertNotNull(field); assertEquals("jcr:primaryType", field); }