@Deprecated public class RestJsonSchemaBuilder extends Object implements SchemaBuilder
Class that builds the Schema object from the JSON representation of the schema as returned by the URL of the form http://localhost:8983/solr/gettingstarted/schema/ . This particular URL returns the schema in JSON format for the gettingstarted example running locally.
| Constructor and Description |
|---|
RestJsonSchemaBuilder(String url)
Deprecated.
|
RestJsonSchemaBuilder(String solrHost,
String solrPort,
String collection)
Deprecated.
Urls with the form http://localhost:8983/solr/gettingstarted/schema/ returns the schema in JSON format.
|
RestJsonSchemaBuilder(URL url)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildSchema()
Deprecated.
|
Schema |
getSchema()
Deprecated.
|
public RestJsonSchemaBuilder(String solrHost, String solrPort, String collection) throws IOException
Urls with the form http://localhost:8983/solr/gettingstarted/schema/ returns the schema in JSON format.
IOExceptionpublic RestJsonSchemaBuilder(String url) throws IOException
IOExceptionpublic RestJsonSchemaBuilder(URL url) throws IOException
IOExceptionpublic void buildSchema()
throws IOException
buildSchema in interface SchemaBuilderIOExceptionpublic Schema getSchema()
getSchema in interface SchemaBuilderCopyright © 2021 The Apache Software Foundation. All rights reserved.