use of org.apache.jackrabbit.oak.plugins.index.lucene.util.IndexDefinitionBuilder.IndexRule in project jackrabbit-oak by apache.
the class HybridIndexTest method createIndex.
private static Tree createIndex(Tree index, String name, Set<String> propNames) {
IndexDefinitionBuilder idx = new IndexDefinitionBuilder();
IndexRule rule = idx.indexRule("nt:base");
for (String propName : propNames) {
rule.property(propName).propertyIndex();
}
Tree idxTree = index.getChild("oak:index").addChild(name);
idx.build(idxTree);
return idxTree;
}
Aggregations