|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.client.solrj.SolrServer org.apache.solr.client.solrj.embedded.EmbeddedSolrServer
public class EmbeddedSolrServer
SolrServer that connects directly to SolrCore TODO -- this implementation sends the response to XML and then parses it. It *should* be able to convert the response directly into a named list.
Field Summary | |
---|---|
protected CoreContainer |
coreContainer
|
protected String |
coreName
|
Constructor Summary | |
---|---|
EmbeddedSolrServer(CoreContainer coreContainer,
String coreName)
Creates a SolrServer. |
|
EmbeddedSolrServer(SolrCore core)
Deprecated. |
Method Summary | |
---|---|
CoreContainer |
getCoreContainer()
Getter method for the CoreContainer |
NamedList<Object> |
getParsedResponse(SolrQueryRequest req,
SolrQueryResponse rsp)
Deprecated. use BinaryResponseWriter.getParsedResponse(SolrQueryRequest, SolrQueryResponse) |
NamedList<Object> |
request(SolrRequest request)
SolrServer implementations need to implement how a request is actually processed |
void |
shutdown()
Shutdown all cores within the EmbeddedSolrServer instance |
Methods inherited from class org.apache.solr.client.solrj.SolrServer |
---|
add, add, add, add, addBean, addBean, addBeans, addBeans, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, getBinder, optimize, optimize, optimize, ping, query, query, queryAndStreamResponse, rollback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final CoreContainer coreContainer
protected final String coreName
Constructor Detail |
---|
@Deprecated public EmbeddedSolrServer(SolrCore core)
core
- public EmbeddedSolrServer(CoreContainer coreContainer, String coreName)
coreContainer
- the core containercoreName
- the core nameMethod Detail |
---|
public NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException
SolrServer
request
in class SolrServer
SolrServerException
IOException
@Deprecated public NamedList<Object> getParsedResponse(SolrQueryRequest req, SolrQueryResponse rsp)
BinaryResponseWriter.getParsedResponse(SolrQueryRequest, SolrQueryResponse)
req
- rsp
-
public void shutdown()
shutdown
in class SolrServer
public CoreContainer getCoreContainer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |