Java org.apache.solr.client.solrj.embedded EmbeddedSolrServer fields, constructors, methods, implement or subclass

Example usage for Java org.apache.solr.client.solrj.embedded EmbeddedSolrServer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.solr.client.solrj.embedded EmbeddedSolrServer.

The text is from its open source code.

Subclass

org.apache.solr.client.solrj.embedded.EmbeddedSolrServer has subclasses.
Click this link to see all its subclasses.

Constructor

EmbeddedSolrServer(Path solrHome, String defaultCoreName)
Create an EmbeddedSolrServer using a given solr home directory
EmbeddedSolrServer(NodeConfig nodeConfig, String defaultCoreName)
Create an EmbeddedSolrServer using a NodeConfig
EmbeddedSolrServer(CoreContainer coreContainer, String coreName)
Create an EmbeddedSolrServer wrapping a CoreContainer.
EmbeddedSolrServer(SolrCore core)
Create an EmbeddedSolrServer wrapping a particular SolrCore

Method

UpdateResponseadd(Collection docs)
Adds a collection of documents
UpdateResponseaddBean(Object obj)
Adds a single bean The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder
voidclose()
Shutdown all cores within the EmbeddedSolrServer instance
UpdateResponsecommit()
Performs an explicit commit, causing pending documents to be committed for indexing waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP access

Be very careful when triggering commits from the client side.

UpdateResponsedeleteByQuery(String query)
Deletes documents from the index based on a query
SolrDocumentgetById(String collection, String id)
Retrieves the SolrDocument associated with the given identifier.
CoreContainergetCoreContainer()
Getter method for the CoreContainer
SolrPingResponseping()
Issues a ping request to check if the server is alive
QueryResponsequery(SolrParams params)
Performs a query to the Solr server
QueryResponsequery(String collection, SolrParams params)
Performs a query to the Solr server
NamedListrequest(final SolrRequest request)
Execute a request against a Solr server