public static class SolrJsonMapper.Builder extends Object
Constructor and Description |
---|
Builder(org.apache.solr.client.solrj.SolrClient solrClient,
String jsonTupleField)
SolrJsonMapper builder class. |
Builder(String collection,
String jsonTupleField)
SolrJsonMapper builder class. |
Modifier and Type | Method and Description |
---|---|
SolrJsonMapper |
build() |
SolrJsonMapper.Builder |
setJsonUpdateUrl(String jsonUpdateUrl)
Sets the URL endpoint where to send
SolrRequest requests in JSON format. |
public Builder(String collection, String jsonTupleField)
SolrJsonMapper
builder class.
collection
- Name of the Solr collection to update using the SolrRequestjsonTupleField
- Name of the tuple field that contains the JSON object used to update the Solr indexpublic Builder(org.apache.solr.client.solrj.SolrClient solrClient, String jsonTupleField)
SolrJsonMapper
builder class.
solrClient
- SolrClient
implementation from where to extract the default Solr collection, if any defined.jsonTupleField
- Name of the tuple field that contains the JSON object used to update the Solr indexpublic SolrJsonMapper.Builder setJsonUpdateUrl(String jsonUpdateUrl)
Sets the URL endpoint where to send SolrRequest
requests in JSON format. This URL is defined by Solr and for the most part you will not have to call this method to to override this value. Currently the default value is /update/json/docs. This method is available to support future evolutions of the Solr API.
jsonUpdateUrl
- URL endpoint to where send SolrRequest
object
used to build instances of SolrJsonMapper
public SolrJsonMapper build()
Copyright © 2019 The Apache Software Foundation. All rights reserved.