public abstract class IndexSchemaFactory extends Object implements NamedListInitializedPlugin
Modifier and Type | Class and Description |
---|---|
static class |
IndexSchemaFactory.VersionedConfig |
Constructor and Description |
---|
IndexSchemaFactory() |
Modifier and Type | Method and Description |
---|---|
static IndexSchema |
buildIndexSchema(String resourceName,
SolrConfig config) |
static IndexSchema |
buildIndexSchema(String resourceName,
SolrConfig config,
ConfigSetService configSetService)
Instantiates the configured schema factory, then calls create on it.
|
IndexSchema |
create(String resourceName,
SolrConfig config,
ConfigSetService configSetService)
Returns an index schema created from a local resource.
|
static ConfigSetService.ConfigResource |
getConfigResource(ConfigSetService configSetService,
InputStream schemaInputStream,
SolrResourceLoader loader,
String name) |
String |
getSchemaResourceName(String cdResourceName)
Returns the resource (file) name that will be used for the schema itself.
|
static IndexSchemaFactory |
newIndexSchemaFactory(SolrConfig config)
Instantiates us from
SolrConfig . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public static IndexSchema buildIndexSchema(String resourceName, SolrConfig config)
public static IndexSchema buildIndexSchema(String resourceName, SolrConfig config, ConfigSetService configSetService)
public static IndexSchemaFactory newIndexSchemaFactory(SolrConfig config)
SolrConfig
.public String getSchemaResourceName(String cdResourceName)
create(String, SolrConfig, ConfigSetService)
.
The input is the name coming from the CoreDescriptor
which acts as a default or asked-for name.public IndexSchema create(String resourceName, SolrConfig config, ConfigSetService configSetService)
public static ConfigSetService.ConfigResource getConfigResource(ConfigSetService configSetService, InputStream schemaInputStream, SolrResourceLoader loader, String name) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.