Example usage for Java org.apache.solr.client.solrj.embedded EmbeddedSolrServer fields, constructors, methods, implement or subclass
The text is from its open source code.
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 |
UpdateResponse | add(Collection Adds a collection of documents |
UpdateResponse | addBean(Object obj) Adds a single bean The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder |
void | close() Shutdown all cores within the EmbeddedSolrServer instance |
UpdateResponse | commit() 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. |
UpdateResponse | deleteByQuery(String query) Deletes documents from the index based on a query |
SolrDocument | getById(String collection, String id) Retrieves the SolrDocument associated with the given identifier. |
CoreContainer | getCoreContainer() Getter method for the CoreContainer |
SolrPingResponse | ping() Issues a ping request to check if the server is alive |
QueryResponse | query(SolrParams params) Performs a query to the Solr server |
QueryResponse | query(String collection, SolrParams params) Performs a query to the Solr server |
NamedList | request(final SolrRequest request) Execute a request against a Solr server |