public class EmbeddedSolrServer extends SolrServer
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.
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.
use
EmbeddedSolrServer(CoreContainer, String) instead. |
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) |
void |
shutdown()
Shutdown all cores within the EmbeddedSolrServer instance
|
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
protected final CoreContainer coreContainer
protected final String coreName
@Deprecated public EmbeddedSolrServer(SolrCore core)
EmbeddedSolrServer(CoreContainer, String)
instead.public EmbeddedSolrServer(CoreContainer coreContainer, String coreName)
coreContainer
- the core containercoreName
- the core namepublic NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException
request
in class SolrServer
SolrServerException
IOException
@Deprecated public NamedList<Object> getParsedResponse(SolrQueryRequest req, SolrQueryResponse rsp)
public void shutdown()
shutdown
in class SolrServer
public CoreContainer getCoreContainer()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.