Fetch data from lucene.

@param client
the client
@return the sets the
426862
protected Set<String> fetchDataFromLucene(Class<?> clazz, Client client)
    {
        // use lucene to query and get Pk's only.
        // go to client and get relation with values.!
        // populate EnhanceEntity

        /** The lucene query from jpa query. */
        String luceneQueryFromJPAQuery = KunderaCoreUtils.getLuceneQueryFromJPAQuery(kunderaQuery, kunderaMetadata);

        Map<String, Object> results = client.getIndexManager().search(clazz, luceneQueryFromJPAQuery);
        Set rSet = new HashSet(results.values());
        return rSet;
    }
789052
@Override
    public ResourceSet<Participant> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
718251
@Override
    public ResourceSet<TollFree> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1182607
@Override
    public ResourceSet<Worker> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
334381
@Override
    public ResourceSet<Trigger> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
462622
@Override
    public ResourceSet<Field> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1149940
@Override
    public ResourceSet<Factor> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
550287
@Override
    public ResourceSet<Flow> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1214674
@Override
    public ResourceSet<Call> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
248664
@Override
    public ResourceSet<Message> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
493165
protected List<Object> populateEntities(EntityMetadata m, Client client)
    {
        if (log.isDebugEnabled())
        {
            log.debug("on start of fetching non associated entities");
        }
        List<Object> result = new ArrayList<Object>();

        initializeReader();

        try
        {
            if (MetadataUtils.useSecondryIndex(((ClientBase) client).getClientMetadata()))
            {
                List<String> relations = new ArrayList<String>();
                if (kunderaQuery.isNative())
                {
                    return ((HibernateClient) client).find(getJPAQuery(), relations, m);

                }
                else
                {
                    return ((HibernateClient) client).findByQuery(getJPAQuery(), getParamaters(), firstResult, maxResult);

                }
            }
            else
            {
                return populateUsingLucene(m, client, result, null);
            }
        }
        catch (Exception e)
        {
            log.error("Error during query execution, Caused by: {}.", e);
            throw new QueryHandlerException(e);
        }
    }
517514
@Override
    public ResourceSet<AvailableAddOnExtension> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1313840
@Override
    public ResourceSet<SyncMapItem> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1338572
@Override
    public ResourceSet<CredentialListMapping> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1299212
@Override
    public ResourceSet<FieldType> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
851271
@Override
    public ResourceSet<Daily> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1197677
@Override
    public ResourceSet<Asset> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }