Class SchemaRequest.AddField

  • All Implemented Interfaces:
    Enclosing class:

    public static class SchemaRequest.AddField
    extends SchemaRequest.Update
    Adds a new field definition to the schema. If the field already exists, the method SolrRequest.process(SolrClient, String) will fail. Note that the request will be translated to json, so please use concrete values (e.g. : true, 1) instead of their string representation (e.g. : "true", "1") for the field attributes expecting boolean or number values.
    See Also:
    Serialized Form
    • Constructor Detail

      • AddField

        public AddField​(Map<String,​Object> fieldAttributes)
        Creates a new instance of the request.
        fieldAttributes - field type attributes that can be used to enrich the field definition.
        See Also:
        Defining Solr fields