Package org.dspace.discovery

Examples of org.dspace.discovery.DiscoverQuery


    @Override
    public int doOffsetQuery(String column, String value, boolean isAscending)
            throws BrowseException
    {
        DiscoverQuery query = new DiscoverQuery();
        addLocationScopeFilter(query);
        addStatusFilter(query);
        query.setMaxResults(0);
        query.addFilterQueries("search.resourcetype:" + Constants.ITEM);
        if (isAscending)
        {
            query.setQuery("bi_"+column + "_sort" + ": [* TO \"" + value + "\"}");
        }
        else
        {
            query.setQuery("bi_" + column + "_sort" + ": {\"" + value + "\" TO *]");
        }
        DiscoverResult resp = null;
        try
        {
            resp = searcher.search(context, query);
View Full Code Here


    @Override
    public List<DSpaceObject> doItemMapSearch(Context context, String queryString,
            Collection collection)
            throws IOException
    {
        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) {
View Full Code Here

TOP

Related Classes of org.dspace.discovery.DiscoverQuery

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.