LuceneIndexDefinition extends IndexDefinition { public boolean saveDirListing() { return saveDirListing; } 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();  }
@Test public void defaultConfig() throws Exception{ LuceneIndexDefinition idxDefn = new LuceneIndexDefinition(root, builder.getNodeState(), "/foo"); assertTrue(idxDefn.saveDirListing()); assertFalse(idxDefn.isNRTIndexingEnabled()); assertFalse(idxDefn.hasSyncPropertyDefinitions()); }