public class ManagedIndexSchemaFactory extends IndexSchemaFactory implements SolrCoreAware
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MANAGED_SCHEMA_RESOURCE_NAME |
static String |
MANAGED_SCHEMA_RESOURCE_NAME |
| Constructor and Description |
|---|
ManagedIndexSchemaFactory() |
| Modifier and Type | Method and Description |
|---|---|
ManagedIndexSchema |
create(String resourceName,
SolrConfig config)
First, try to locate the managed schema file named in the managedSchemaResourceName
param.
|
String |
getManagedSchemaResourceName() |
SolrResourceLoader |
getResourceLoader() |
ManagedIndexSchema |
getSchema() |
Object |
getSchemaUpdateLock() |
void |
inform(SolrCore core) |
void |
init(NamedList args) |
void |
setSchema(ManagedIndexSchema schema) |
buildIndexSchema, getResourceNameToBeUsedpublic static final String DEFAULT_MANAGED_SCHEMA_RESOURCE_NAME
public static final String MANAGED_SCHEMA_RESOURCE_NAME
public String getManagedSchemaResourceName()
public SolrResourceLoader getResourceLoader()
public void init(NamedList args)
init in interface NamedListInitializedPluginpublic ManagedIndexSchema create(String resourceName, SolrConfig config)
SolrResourceLoader.getConfigDir(), or if configs are
in ZooKeeper, under ZkSolrResourceLoader.collectionZkPath.
After the managed schema file is persisted, the original schema file is
renamed by appending the extension named in UPGRADED_SCHEMA_EXTENSION.create in class IndexSchemaFactorypublic Object getSchemaUpdateLock()
public void inform(SolrCore core)
inform in interface SolrCoreAwarepublic ManagedIndexSchema getSchema()
public void setSchema(ManagedIndexSchema schema)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.