[
https://issues.apache.org/jira/browse/IGNITE-7055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16279581#comment-16279581
]
ASF GitHub Bot commented on IGNITE-7055:
----------------------------------------
GitHub user shroman opened a pull request:
https://github.com/apache/ignite/pull/3151
IGNITE-7055: Fix text query to work with a particular field.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shroman/ignite IGNITE-7055
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/3151.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3151
----
commit 8cb22b7e7311d18b1b3d27d1dfcd43493a7e7101
Author: shroman <[email protected]>
Date: 2017-12-06T03:06:16Z
IGNITE-6534: Configure NotNull fields with annotations.
----
> 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
> Assignee: Roman Shtykh
>
> 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)