Class IndexSchemaFactory

    • Constructor Detail

      • IndexSchemaFactory

        public IndexSchemaFactory()
    • Method Detail

      • create

        public IndexSchema create​(String resourceName,
                                  SolrConfig config)
        Returns an index schema created from a local resource
      • buildIndexSchema

        public static IndexSchema buildIndexSchema​(String resourceName,
                                                   SolrConfig config)
        Instantiates the configured schema factory, then calls create on it.
      • getResourceNameToBeUsed

        public static String getResourceNameToBeUsed​(String resourceName,
                                                     SolrConfig config)
        Returns the resource name that will be used: if the schema is managed, the resource name will be drawn from the schema factory configuration in the given SolrConfig. Otherwise, the given resourceName will be returned.
        Parameters:
        resourceName - The name to use if the schema is not managed
        config - The SolrConfig from which to get the schema factory config
        Returns:
        If the schema is managed, the resource name from the given SolrConfig, otherwise the given resourceName.