[
https://issues.apache.org/jira/browse/GEODE-2952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16026941#comment-16026941
]
ASF GitHub Bot commented on GEODE-2952:
---------------------------------------
GitHub user karensmolermiller opened a pull request:
https://github.com/apache/geode/pull/545
GEODE-2952 document quoting of exact match Lucene queries
@DivineEnder @upthewaterspout @boglesby @nabarunnag @ladyVader @dihardman
Please review.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/karensmolermiller/geode feature/GEODE-2952
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/geode/pull/545.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 #545
----
commit 71f01758e1fa7535fc19dffb542293b8eddbac31
Author: Karen Miller <[email protected]>
Date: 2017-05-26T22:10:43Z
GEODE-2952 document quoting of exact match Lucene queries
----
> gfsh doesn't support exact match lucene queries
> -----------------------------------------------
>
> Key: GEODE-2952
> URL: https://issues.apache.org/jira/browse/GEODE-2952
> Project: Geode
> Issue Type: Bug
> Components: lucene
> Reporter: Barry Oglesby
> Assignee: David Anuta
> Fix For: 1.2.0
>
>
> This command:
> {noformat}
> gfsh>search lucene --name=index --region=data
> --defaultField=Resolution_Description --queryStrings='Police Dept'
> {noformat}
> Runs this lucene query:
> {noformat}
> Resolution_Description:police Resolution_Description:dept
> {noformat}
> I also tried this command which ran the same lucene query as above:
> {noformat}
> gfsh>search lucene --name=index --region=data
> --defaultField=Resolution_Description --queryStrings='\"Police Dept\"'
> {noformat}
> The java API supports exact match queries with "" around the queryString.
> Doing this causes this lucene query to be run:
> {noformat}
> Resolution_Description:"police dept"
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)