public class DirectSolrConnection extends Object
Modifier and Type | Field and Description |
---|---|
protected SolrCore |
core |
protected SolrRequestParsers |
parser |
Constructor and Description |
---|
DirectSolrConnection(SolrCore c)
Initialize using an explicit SolrCore
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Use this method to close the underlying SolrCore.
|
String |
request(SolrRequestHandler handler,
SolrParams params,
String body) |
String |
request(String path,
SolrParams params,
String body) |
String |
request(String pathAndParams,
String body)
For example:
String json = solr.request( "/select?qt=dismax&wt=json&q=...", null );
String xml = solr.request( "/update", "<add><doc><field ..." );
|
protected final SolrCore core
protected final SolrRequestParsers parser
public DirectSolrConnection(SolrCore c)
public String request(String pathAndParams, String body) throws Exception
Exception
public String request(String path, SolrParams params, String body) throws Exception
Exception
public String request(SolrRequestHandler handler, SolrParams params, String body) throws Exception
Exception
public void close()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.