public class EmbeddedSolrServer extends SolrServer
| Modifier and Type | Field and Description |
|---|---|
protected CoreContainer |
coreContainer |
protected String |
coreName |
| Constructor and Description |
|---|
EmbeddedSolrServer(CoreContainer coreContainer,
String coreName)
Creates a SolrServer.
|
EmbeddedSolrServer(SolrCore core)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CoreContainer |
getCoreContainer()
Getter method for the CoreContainer
|
NamedList<Object> |
getParsedResponse(SolrQueryRequest req,
SolrQueryResponse rsp)
|
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
|
add, add, add, add, addBean, addBean, addBeans, addBeans, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, getBinder, optimize, optimize, optimize, ping, query, query, rollbackprotected final CoreContainer coreContainer
protected final String coreName
@Deprecated public EmbeddedSolrServer(SolrCore core)
core - public EmbeddedSolrServer(CoreContainer coreContainer, String coreName)
coreContainer - the core containercoreName - the core namepublic NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException
SolrServerrequest in class SolrServerSolrServerExceptionIOException@Deprecated public NamedList<Object> getParsedResponse(SolrQueryRequest req, SolrQueryResponse rsp)
req - rsp - public void shutdown()
public CoreContainer getCoreContainer()