Search in sources :

Example 11 with SearchException

use of org.opencastproject.search.api.SearchException in project opencast by opencast.

the class SearchServiceImpl method clear.

/**
 * Clears the complete solr index.
 *
 * @throws SearchException
 *           if clearing the index fails
 */
public void clear() throws SearchException {
    try {
        logger.info("Clearing the search index");
        indexManager.clear();
    } catch (SolrServerException e) {
        throw new SearchException(e);
    }
}
Also used : SolrServerException(org.apache.solr.client.solrj.SolrServerException) SearchException(org.opencastproject.search.api.SearchException)

Aggregations

SearchException (org.opencastproject.search.api.SearchException)11 UnauthorizedException (org.opencastproject.security.api.UnauthorizedException)9 HttpResponse (org.apache.http.HttpResponse)5 Job (org.opencastproject.job.api.Job)5 ArrayList (java.util.ArrayList)4 NotFoundException (org.opencastproject.util.NotFoundException)4 HttpGet (org.apache.http.client.methods.HttpGet)3 SolrServerException (org.apache.solr.client.solrj.SolrServerException)3 DistributionException (org.opencastproject.distribution.api.DistributionException)3 MediaPackage (org.opencastproject.mediapackage.MediaPackage)3 URI (java.net.URI)2 Date (java.util.Date)2 HashSet (java.util.HashSet)2 BasicNameValuePair (org.apache.http.message.BasicNameValuePair)2 Attachment (org.opencastproject.mediapackage.Attachment)2 MediaPackageElement (org.opencastproject.mediapackage.MediaPackageElement)2 MediaPackageException (org.opencastproject.mediapackage.MediaPackageException)2 SearchQuery (org.opencastproject.search.api.SearchQuery)2 SearchResult (org.opencastproject.search.api.SearchResult)2 SearchServiceDatabaseException (org.opencastproject.search.impl.persistence.SearchServiceDatabaseException)2