@Override
public Iterable<EntityReference> findEntities( Class<?> resultType, @Optional Specification<Composite> whereClause, @Optional OrderBy[] orderBySegments, @Optional Integer firstResult, @Optional Integer maxResults, Map<String, Object> variables ) throws EntityFinderException
{
try
{
QuerySpecification expr = (QuerySpecification) whereClause;
SolrServer server = solr.solrServer();
NamedList<Object> list = new NamedList<Object>();
list.add( "q", expr.query() );
list.add( "rows", maxResults != 0 ? maxResults : 10000 );
list.add( "start", firstResult );
if( orderBySegments != null && orderBySegments.length > 0 )
{