@Test public void mixinAndPrimaryType() throws Exception{ TestUtil.registerNodeType(builder, testNodeTypeDefn); root = builder.getNodeState(); LuceneIndexDefinitionBuilder defnb = new LuceneIndexDefinitionBuilder(); defnb.indexRule("oak:TestMixA").property(JcrConstants.JCR_PRIMARYTYPE).propertyIndex(); defnb.indexRule("oak:TestSuperType").property(JcrConstants.JCR_PRIMARYTYPE).propertyIndex().sync(); IndexDefinition defn = IndexDefinition.newBuilder(root, defnb.build(), "/foo").build(); IndexingRule a = getRule(defn, "oak:TestMixA"); assertNotNull(a.getConfig(JcrConstants.JCR_PRIMARYTYPE)); assertNotNull(a.getConfig(JcrConstants.JCR_MIXINTYPES)); assertFalse(a.getConfig(JcrConstants.JCR_MIXINTYPES).sync); IndexingRule b = getRule(defn, "oak:TestSuperType"); assertNotNull(b.getConfig(JcrConstants.JCR_PRIMARYTYPE)); assertNotNull(b.getConfig(JcrConstants.JCR_MIXINTYPES)); assertTrue(b.getConfig(JcrConstants.JCR_PRIMARYTYPE).sync); assertTrue(b.getConfig(JcrConstants.JCR_MIXINTYPES).sync); }
public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); }
LuceneIndexDefinition extends IndexDefinition { public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); } }
LuceneIndexDefinition extends IndexDefinition { public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); }
LuceneIndexDefinition extends IndexDefinition { public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); static Builder newBuilder(NodeState root, NodeState defn, String indexPath); boolean saveDirListing(); @Nullable Codec getCodec(); @NotNull MergePolicy getMergePolicy(); Analyzer getAnalyzer(); }
LuceneIndexDefinition extends IndexDefinition { public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); static Builder newBuilder(NodeState root, NodeState defn, String indexPath); boolean saveDirListing(); @Nullable Codec getCodec(); @NotNull MergePolicy getMergePolicy(); Analyzer getAnalyzer();  }