Class SchemaManager

java.lang.Object
org.apache.solr.schema.SchemaManager

public class SchemaManager extends Object
A utility class to manipulate schema using the bulk mode. This class takes in all the commands and processes them completely. It is an all or nothing operation.
  • Constructor Details

  • Method Details

    • performOperations

      public List<Map<String,Object>> performOperations(List<SchemaChange> ops) throws Exception
      Take in a set of schema commands and execute them. It tries to capture as many errors as possible instead of failing at the first error it encounters
      Returns:
      List of errors. If the List is empty then the operation was successful.
      Throws:
      Exception
    • getErrorStr

      public static String getErrorStr(Exception e)