CmsSolrResultList solrSearch(CmsObject cms, CmsSolrIndex index, String query, int start, int rows)
    throws CmsSearchException {

        CmsSolrQuery q = new CmsSolrQuery(null, CmsRequestUtil.createParameterMap(query));
        q.setStart(new Integer(start));
        q.setRows(new Integer(rows));
        CmsSolrResultList resultPage = index.search(cms, q, true);
        return resultPage;
    }
CmsSolrResultList solrSearch ( CmsObject cms , CmsSolrIndex index , String query , int start , int rows ) throws CmsSearchException { CmsSolrQuery q = new CmsSolrQuery ( null , CmsRequestUtil . createParameterMap ( query ) ) ; q . setStart ( new Integer ( start ) ) ; q . setRows ( new Integer ( rows ) ) ; CmsSolrResultList resultPage = index . search ( cms , q , true ) ; return resultPage ; }
Helper method for executing a query.<p>

@param cms the CMS context to use
@param index the index to use for the query
@param query the query to perform
@param start the start offset
@param rows the number of results to return

@return the list of search results
@throws CmsSearchException if something goes wrong