Package org.dspace.xoai.solr.exceptions

Examples of org.dspace.xoai.solr.exceptions.SolrSearchEmptyException


            solrParams.addSortField("item.id", ORDER.asc);
            QueryResponse response = server.query(solrParams);
            if (response.getResults().getNumFound() > 0)
                return response.getResults().get(0);
            else
                throw new SolrSearchEmptyException();
        }
        catch (SolrServerException ex)
        {
            throw new SolrSearchEmptyException(ex.getMessage(), ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.dspace.xoai.solr.exceptions.SolrSearchEmptyException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.