public class SolrIndexInitializer extends Object implements org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer
RepositoryInitializer for Solr indexDEFAULT| Constructor and Description |
|---|
SolrIndexInitializer()
build Solr index definition with defaults (name = solr, reindex enabled, asynchronous):
|
SolrIndexInitializer(boolean async)
build Solr index definition by specifying if it should be async or not
|
SolrIndexInitializer(boolean async,
String name,
boolean reindex)
build Solr index definition by specifying all the configurable parameters
|
SolrIndexInitializer(String name)
build Solr index definition with a specific node name and defaults (reindex enabled, asynchronous):
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.apache.jackrabbit.oak.spi.state.NodeBuilder builder) |
static boolean |
isSolrIndexNode(org.apache.jackrabbit.oak.spi.state.NodeState node) |
public SolrIndexInitializer()
public SolrIndexInitializer(String name)
name - the name of the node holding the Solr index definitionpublic SolrIndexInitializer(boolean async)
async - if true for the index to be asynchronous, false to make
it synchronouspublic SolrIndexInitializer(boolean async,
String name,
boolean reindex)
async - if true for the index to be asynchronous, false to make
it synchronousname - the name of the node holding the Solr index definitionreindex - true if the reindexing should be enabledpublic void initialize(@Nonnull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
initialize in interface org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializerpublic static boolean isSolrIndexNode(org.apache.jackrabbit.oak.spi.state.NodeState node)
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.