public interface SolrMetacardClient
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.solr.common.SolrInputDocument> |
add(List<Metacard> metacards,
boolean forceAutoCommit)
Adds a list of
Metacard objects to Solr. |
void |
deleteByIds(String fieldName,
List<? extends Serializable> identifiers,
boolean forceCommit)
Deletes Solr documents by ID.
|
void |
deleteByQuery(String query)
Deletes all the Solr documents that match a specific query.
|
Set<ContentType> |
getContentTypes() |
SourceResponse |
query(QueryRequest request)
Converts a
QueryRequest into a Solr query and returns the result as a SourceResponse. |
List<Metacard> |
query(String queryString)
Runs a Solr query and converts the result as a list of
Metacard objects. |
SourceResponse query(QueryRequest request) throws UnsupportedQueryException
QueryRequest into a Solr query and returns the result as a SourceResponse.request - query request to execute against SolrUnsupportedQueryException - if the query is not supportedList<Metacard> query(String queryString) throws UnsupportedQueryException
Metacard objects.queryString - Solr query stringMetacard objects created from the Solr resultUnsupportedQueryException - if the query is not supported, e.g., invalid query stringSet<ContentType> getContentTypes()
@Nullable List<org.apache.solr.common.SolrInputDocument> add(@Nullable List<Metacard> metacards, boolean forceAutoCommit) throws IOException, org.apache.solr.client.solrj.SolrServerException, MetacardCreationException
Metacard objects to Solr.metacards - list of Metacard objects to addforceAutoCommit - force an auto-commit after the additionIOException - if there is a communication error with the serverorg.apache.solr.client.solrj.SolrServerException - if there is an error on the serverMetacardCreationException - if a Metacard could not be createdvoid deleteByIds(String fieldName, List<? extends Serializable> identifiers, boolean forceCommit) throws IOException, org.apache.solr.client.solrj.SolrServerException
fieldName - field name that contains the IDidentifiers - list of identifiers to deleteforceCommit - force an auto-commit after the deletionIOException - if there is a communication error with the serverorg.apache.solr.client.solrj.SolrServerException - if there is an error on the servervoid deleteByQuery(String query) throws IOException, org.apache.solr.client.solrj.SolrServerException
query - Solr query stringIOException - if there is a communication error with the serverorg.apache.solr.client.solrj.SolrServerException - if there is an error on the serverThis work is licensed under a Creative Commons Attribution 4.0 International License.