|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 org.apache.solr.core.CoreContainer |
coreContainer
|
protected String |
coreName
|
Constructor Summary | |
---|---|
EmbeddedSolrServer(org.apache.solr.core.CoreContainer coreContainer,
String coreName)
Creates a SolrServer. |
|
EmbeddedSolrServer(org.apache.solr.core.SolrCore core)
Deprecated. |
Method Summary | |
---|---|
org.apache.solr.common.util.NamedList<Object> |
getParsedResponse(org.apache.solr.request.SolrQueryRequest req,
org.apache.solr.request.SolrQueryResponse rsp)
TODO -- in the future, this could perhaps transform the NamedList without serializing it then parsing it from the serialized form. |
org.apache.solr.common.util.NamedList<Object> |
request(SolrRequest request)
SolrServer implementations need to implement a how a request is actually processed |
Methods inherited from class org.apache.solr.client.solrj.SolrServer |
---|
add, add, addBean, addBeans, commit, commit, deleteById, deleteByQuery, getBinder, optimize, optimize, optimize, ping, query, query |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.solr.core.CoreContainer coreContainer
protected final String coreName
Constructor Detail |
---|
@Deprecated public EmbeddedSolrServer(org.apache.solr.core.SolrCore core)
core
- public EmbeddedSolrServer(org.apache.solr.core.CoreContainer coreContainer, String coreName)
coreContainer
- the core containercoreName
- the core nameMethod Detail |
---|
public org.apache.solr.common.util.NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException
SolrServer
request
in class SolrServer
SolrServerException
IOException
public org.apache.solr.common.util.NamedList<Object> getParsedResponse(org.apache.solr.request.SolrQueryRequest req, org.apache.solr.request.SolrQueryResponse rsp)
req
- rsp
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |