mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
SEARCH-435: Using SolrJSONResultSet
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@136224 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -34,6 +34,7 @@ import org.alfresco.repo.search.impl.solr.facet.facetsresponse.GenericBucket;
|
||||
import org.alfresco.repo.search.impl.solr.facet.facetsresponse.GenericFacetResponse;
|
||||
import org.alfresco.repo.search.impl.solr.facet.facetsresponse.GenericFacetResponse.FACET_TYPE;
|
||||
import org.alfresco.repo.search.impl.solr.facet.facetsresponse.MetricCount;
|
||||
import org.alfresco.repo.security.permissions.impl.acegi.FilteringResultSet;
|
||||
import org.alfresco.repo.version.Version2Model;
|
||||
import org.alfresco.rest.api.DeletedNodes;
|
||||
import org.alfresco.rest.api.Nodes;
|
||||
@@ -508,17 +509,18 @@ public class ResultMapper
|
||||
*/
|
||||
protected SolrJSONResultSet findSolrResultSet(ResultSet results)
|
||||
{
|
||||
//This may get more complicated if the results are wrapped in another ResultSet class
|
||||
if (results instanceof SolrJSONResultSet)
|
||||
ResultSet theResultSet = results;
|
||||
|
||||
if (results instanceof FilteringResultSet)
|
||||
{
|
||||
return (SolrJSONResultSet) results;
|
||||
theResultSet = ((FilteringResultSet) results).getUnFilteredResultSet();
|
||||
}
|
||||
/**
|
||||
if (results instanceof PagingLuceneResultSet)
|
||||
|
||||
if (theResultSet instanceof SolrJSONResultSet)
|
||||
{
|
||||
return findSolrResultSet(((PagingLuceneResultSet) results).getWrapped());
|
||||
return (SolrJSONResultSet) theResultSet;
|
||||
}
|
||||
**/
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user