@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.
IOException
public RestJsonSchemaBuilder(String url) throws IOException
IOException
public RestJsonSchemaBuilder(URL url) throws IOException
IOException
public void buildSchema() throws IOException
buildSchema
in interface SchemaBuilder
IOException
public Schema getSchema()
getSchema
in interface SchemaBuilder
Copyright © 2022 The Apache Software Foundation. All rights reserved.