use of org.apache.jackrabbit.oak.plugins.index.lucene.util.IndexDefinitionBuilder in project jackrabbit-oak by apache.
the class ExternalIndexObserverTest method createNRTIndex.
private static IndexDefinition createNRTIndex(String ruleName) {
IndexDefinitionBuilder idx = new IndexDefinitionBuilder();
idx.indexRule(ruleName).property("foo").propertyIndex();
idx.async("async", "sync");
return new IndexDefinition(INITIAL_CONTENT, idx.build(), "/oak:index/foo");
}
Aggregations