use of com.tyndalehouse.step.core.models.search.SubjectEntries in project step by STEPBible.
the class SubjectEntryServiceImpl method getVersesForResults.
/**
* obtains the verses for all results
*
* @param results the results
* @param versions the version in which to look it up
* @param context the context to expand with the reference
* @return the verses
*/
private SubjectEntries getVersesForResults(final EntityDoc[] results, final String[] versions, final String limitingScopeReference, final int context) {
final List<OsisWrapper> verses = new ArrayList<OsisWrapper>(32);
boolean masterVersionSwapped = false;
for (final EntityDoc doc : results) {
final String references = doc.get("references");
masterVersionSwapped |= collectVersesFromReferences(verses, versions, references, limitingScopeReference, context);
}
return new SubjectEntries(verses, masterVersionSwapped);
}
Aggregations