public class EmbeddedSolrServer extends SolrClient
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)
Use the other constructor using a CoreContainer and a name.
|
Modifier and Type | Method and Description |
---|---|
CoreContainer |
getCoreContainer()
Getter method for the CoreContainer
|
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
public EmbeddedSolrServer(SolrCore core)
public EmbeddedSolrServer(CoreContainer coreContainer, String coreName)
coreContainer
- the core containercoreName
- the core namepublic NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException
request
in class SolrClient
SolrServerException
IOException
public void shutdown()
shutdown
in class SolrClient
public CoreContainer getCoreContainer()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.