Package org.dspace.discovery

Examples of org.dspace.discovery.DiscoverResult


    @Override
    public int doDistinctOffsetQuery(String column, String value,
            boolean isAscending) throws BrowseException
    {
        DiscoverResult resp = getSolrResponse();
        List<FacetResult> facets = resp.getFacetResult(facetField);
        Comparator comparator = new SolrBrowseDAO.FacetValueComparator();
        Collections.sort(facets, comparator);
        int x = Collections.binarySearch(facets, value, comparator);
        int ascValue = (x >= 0) ? x : -(x + 1);
        if (isAscending)
View Full Code Here


    {
        DiscoverQuery query = new DiscoverQuery();
        query.setQuery(queryString);
        query.addFilterQueries("-location:l"+collection.getID());

        DiscoverResult results = null;
        try {
            results = SearchUtils.getSearchService().search(context, query);
        } catch (SearchServiceException ex) {
            throw new IOException(ex); // Best we can do with the interface method's signature
        }

        return results.getDspaceObjects();
    }
View Full Code Here

TOP

Related Classes of org.dspace.discovery.DiscoverResult

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.