// If size is greater than MaxSearchResultRecords
// then throw Exception else add to Pointer FilePath
if (size == 0)
{
SSAFSolrException ssafException = new SSAFSolrException();
ssafException.setFatalError(SSAFSolrErrorCodes.NO_RECORDS_FOUND);
throw ssafException;
}
if (size > getMaxSearchResultRecords())
{
SSAFSolrException ssafException = new SSAFSolrException();
ssafException.setFatalError(SSAFSolrErrorCodes.EXCEEDS_MAX_RETURN_RECORDS);
throw ssafException;
}
else
{
for (int i = 0; i < docs.size(); i++)
{
SolrDocument doc = docs.get(i);
String pointerPath = (String) doc.getFieldValue("pointer-filepath");
result.add(pointerPath);
}
}
// Return
return result;
}
catch (SolrServerException se)
{
SSAFSolrException ssafException = new SSAFSolrException();
ssafException.setFatalError(SSAFSolrErrorCodes.EXCEEDS_MAX_RETURN_RECORDS);
throw ssafException;
}
}