public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse>
This class offers access to the operations exposed by the Solr Schema API.
Most of the operations of this class offer a very abstract interface avoiding
in this manner eventual changes due to Solr Schema API updates. On the other
hand, the creation of request parameters for creating new fields or field types
can be tedious because it is not strongly typed (the user has to build on his own
a NamedList
argument containing the field/field type properties).
The class does not currently offer explicit support for the Schema API operations exposed through Managed Resources, but such operations can be built with little effort manually based on this class within the client applications.
This class is experimental and it is subject to change.
Modifier and Type | Class and Description |
---|---|
static class |
SchemaRequest.AddCopyField
Adds a new copy field rule to the schema of the specified collection.
|
static class |
SchemaRequest.AddDynamicField
Adds a new dynamic field rule to the schema of the specified collection.
|
static class |
SchemaRequest.AddField
Adds a new field definition to the schema.
|
static class |
SchemaRequest.AddFieldType
Update request used to add a new field type to the schema.
|
static class |
SchemaRequest.CopyFields
Schema API request that retrieves the source and destination of
each copy field in the schema.
|
static class |
SchemaRequest.DefaultQueryOperator
Retrieves the default operator if it is defined in the schema.
|
static class |
SchemaRequest.DeleteCopyField
Deletes a copy field rule from the schema of the specified collection.
|
static class |
SchemaRequest.DeleteDynamicField
Deletes a dynamic field rule from your schema.
|
static class |
SchemaRequest.DeleteField
Removes a field definition from the schema.
|
static class |
SchemaRequest.DeleteFieldType
Removes a field type from the schema of the specified collection.
|
static class |
SchemaRequest.DynamicField
Schema API request that lists the dynamic field definition for the specified field
contained in the schema.
|
static class |
SchemaRequest.DynamicFields
Schema API request that lists the dynamic field definitions contained in the schema.
|
static class |
SchemaRequest.Field
Schema API request that lists the field definition for the specified field
contained in the schema.
|
static class |
SchemaRequest.Fields
Schema API request class that lists the field definitions contained in the schema.
|
static class |
SchemaRequest.FieldType
Schema API request that retrieves the type definitions for the specified field
type contained in the schema.
|
static class |
SchemaRequest.FieldTypes
Schema API request that lists the types definitions contained
in the schema.
|
static class |
SchemaRequest.GlobalSimilarity
Retrieves the class name of the global similarity defined (if any) in the schema.
|
static class |
SchemaRequest.MultiUpdate
The Schema API offers the possibility to perform one or more add requests in a single command.
|
static class |
SchemaRequest.ReplaceDynamicField
Replaces a dynamic field rule in the schema of the specified collection.
|
static class |
SchemaRequest.ReplaceField
Replaces a field's definition.
|
static class |
SchemaRequest.ReplaceFieldType
Replaces a field type in schema belonging to the schema of the specified collection.
|
static class |
SchemaRequest.SchemaName
Schema API request class that can be used to retrieve the name of the schema.
|
static class |
SchemaRequest.SchemaVersion
Schema API request that can be used to retrieve the version
of the schema for the specified collection.
|
static class |
SchemaRequest.UniqueKey
Schema API request that retrieves the field name that is defined as
the uniqueKey for the index of the specified collection.
|
static class |
SchemaRequest.Update |
SolrRequest.METHOD
SUPPORTED_METHODS
Constructor and Description |
---|
SchemaRequest()
Default constructor.
|
SchemaRequest(SolrParams q) |
Modifier and Type | Method and Description |
---|---|
protected SchemaResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
getContentStreams, getParams
getBasicAuthPassword, getBasicAuthUser, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback
public SchemaRequest()
SolrRequest.process(SolrClient)
public SchemaRequest(SolrParams q)
protected SchemaResponse createResponse(SolrClient client)
SolrRequest
createResponse
in class SolrRequest<SchemaResponse>
client
- the SolrClient
the request will be sent toCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.