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. This doesn’t work in kerberos mode. Please check new versions for kerberos support
Constructor and Description |
---|
RestJsonSchemaBuilder(String url) |
RestJsonSchemaBuilder(String solrHost,
String solrPort,
String collection)
Urls with the form http://localhost:8983/solr/gettingstarted/schema/ returns the schema in JSON format
|
RestJsonSchemaBuilder(URL url) |
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 Schema getSchema()
getSchema
in interface SchemaBuilder
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.