FulltextIndex implements AdvancedQueryIndex, QueryIndex, NativeQueryIndex,
        AdvanceFulltextQueryIndex { public static String parseFacetField(String columnName) { return columnName.substring(QueryConstants.REP_FACET.length() + 1, columnName.length() - 1); }  @Override List<IndexPlan> getPlans(Filter filter, List<OrderEntry> sortOrder, NodeState rootState); @Override double getCost(Filter filter, NodeState root); @Override String getPlan(Filter filter, NodeState root); @Override String getPlanDescription(IndexPlan plan, NodeState root); @Override Cursor query(final Filter filter, final NodeState root); @Override NodeAggregator getNodeAggregator(); static boolean isNodePath(String fulltextTermPath); static int determinePropertyType(PropertyDefinition defn, PropertyRestriction pr); static String getPathRestriction(IndexPlan plan); static String parseFacetField(String columnName); static final String ATTR_PLAN_RESULT; }
@Test public void testParseFacetField() { String field = FulltextIndex.parseFacetField("rep:facet(text)"); assertNotNull(field); assertEquals("text", field); field = FulltextIndex.parseFacetField("rep:facet(jcr:title)"); assertNotNull(field); assertEquals("jcr:title", field); field = FulltextIndex.parseFacetField("rep:facet(jcr:primaryType)"); assertNotNull(field); assertEquals("jcr:primaryType", field); }