Package org.apache.solr.servlet
Class DirectSolrConnection
java.lang.Object
org.apache.solr.servlet.DirectSolrConnection
Deprecated.
DirectSolrConnection provides an interface to Solr that is similar to the HTTP interface, but
does not require an HTTP connection.
This class is designed to be as simple as possible and allow for more flexibility in how you interface to Solr.
- Since:
- solr 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SolrCoreDeprecated.protected final SolrRequestParsersDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Initialize using an explicit SolrCore -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Use this method to close the underlying SolrCore.Deprecated.For example:Deprecated.request(SolrRequestHandler handler, org.apache.solr.common.params.SolrParams params, String body) Deprecated.
-
Field Details
-
core
Deprecated. -
parser
Deprecated.
-
-
Constructor Details
-
DirectSolrConnection
Deprecated.Initialize using an explicit SolrCore
-
-
Method Details
-
request
Deprecated.For example:String json = solr.request( "/select?qt=dismax&wt=json&q=...", null ); String xml = solr.request( "/select?qt=dismax&wt=xml&q=...", null ); String xml = solr.request( "/update", "<add><doc><field ..." );
- Throws:
Exception
-
request
public String request(String path, org.apache.solr.common.params.SolrParams params, String body) throws Exception Deprecated.- Throws:
Exception
-
request
public String request(SolrRequestHandler handler, org.apache.solr.common.params.SolrParams params, String body) throws Exception Deprecated.- Throws:
Exception
-
close
public void close()Deprecated.Use this method to close the underlying SolrCore.- Since:
- solr 1.3
-
EmbeddedSolrServer