@ Override protected List populateEntities ( EntityMetadata m , Client client ) { ClientMetadata clientMetadata = ( ( ClientBase ) client ) . getClientMetadata ( ) ; this . useLuceneOrES = ! MetadataUtils . useSecondryIndex ( clientMetadata ) ; if ( useLuceneOrES ) { return populateUsingLucene ( m , client , null , kunderaQuery . getResult ( ) ) ; } else { CouchDBQueryInterpreter interpreter = onTranslation ( getKunderaQuery ( ) . getFilterClauseQueue ( ) , m ) ; return ( ( CouchDBClient ) client ) . createAndExecuteQuery ( interpreter ) ; } }
Populate results .