You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Valentin Kulichenko (JIRA)" <ji...@apache.org> on 2017/11/28 23:07:00 UTC

[jira] [Created] (IGNITE-7055) Text query for a particular field not working

Valentin Kulichenko created IGNITE-7055:
-------------------------------------------

             Summary: Text query for a particular field not working
                 Key: IGNITE-7055
                 URL: https://issues.apache.org/jira/browse/IGNITE-7055
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 2.3
            Reporter: Valentin Kulichenko


Lucene queries allow to specify a specific field name to search in [1], however this doesn't seem to work in latest versions of Ignite.

To reproduce, modify {{CacheQueryExample#textQuery}} to use Lucene field expression:
{code}
QueryCursor<Cache.Entry<Long, Person>> masters =
    cache.query(new TextQuery<Long, Person>(Person.class, "resume:Master"));
{code}
This query returns empty result.

[1] http://lucene.apache.org/core/5_5_2/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Fields



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)