@Test public void syncIsProperty() throws Exception{ LuceneIndexDefinitionBuilder defnb = new LuceneIndexDefinitionBuilder(); defnb.indexRule("nt:base").property("foo").sync(); IndexDefinition defn = IndexDefinition.newBuilder(root, defnb.build(), "/foo").build(); assertTrue(defn.getApplicableIndexingRule("nt:base").getConfig("foo").sync); assertTrue(defn.getApplicableIndexingRule("nt:base").getConfig("foo").propertyIndex); }
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();  }