Addison created GEODE-5543: ------------------------------ Summary: LuceneQueryFactory API for Geode Native (C++ & C#) Key: GEODE-5543 URL: https://issues.apache.org/jira/browse/GEODE-5543 Project: Geode Issue Type: New Feature Components: native client Reporter: Addison
Currently, Geode Native does not have the ability to call Lucene indexes directly. The aim of this story is to provide an API similar to the remote query service that allows users to make queries against Lucene indices. The Java client exposes a Lucene query service and factory method. {code:java} LuceneService lucene = LuceneServiceProvider.get(cache); LuceneQuery<Integer, EmployeeData> query = lucene.createLuceneQueryFactory().create(SIMPLE_INDEX, EXAMPLE_REGION, "firstName:Chris~2", "firstname"); result = query.findValues());{code} Geode Native should do something similar to the remote query service. For example: C++ {code:java} std::shared_ptr<LuceneService> luceneService = nullptr; luceneService = pool->getLuceneService(); LuceneFactory lf = luceneService::createLuceneQueryFactory(); auto query = lf.create(SIMPLE_INDEX, EXAMPLE_REGION, "firstName:Chris~2", "firstname"); auto results = query->findValues(); {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)