code: 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);
      }
docs: On association using lucene.
  
  @param m
  the m
  @param client
  the client
  @param ls
  the ls
  @return the list