protected List < EnhanceEntity > onAssociationUsingLucene ( EntityMetadata m , Client client , List < EnhanceEntity > ls ) { Set < String > rSet = fetchDataFromLucene ( m . getEntityClazz ( ) , client ) ; List resultList = client . findAll ( m . getEntityClazz ( ) , null , rSet . toArray ( new String [ ] { } ) ) ; return m . getRelationNames ( ) != null && ! m . getRelationNames ( ) . isEmpty ( ) ? resultList : transform ( m , ls , resultList ) ; }
On association using lucene .