[
https://issues.apache.org/jira/browse/GEODE-4155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482808#comment-16482808
]
xiaojian zhou commented on GEODE-4155:
--------------------------------------
syntax should be:
search lucene --name=simpleIndex --region=example-region
--queryStrings="salary=75000"
--queryProvider=org.apache.geode.cache.lucene.test.IntRangeQueryProvider
--defaultField=salary
> Lucene search in gfsh fails for integer values
> ----------------------------------------------
>
> Key: GEODE-4155
> URL: https://issues.apache.org/jira/browse/GEODE-4155
> Project: Geode
> Issue Type: Improvement
> Components: gfsh, lucene
> Reporter: Diane Hardman
> Priority: Major
> Fix For: 1.3.0
>
>
> Using the geode-example/lucene, follow the README file to build the example,
> start up the cluster, and load the Employee data.
> In gfsh, I can successfully use OQL to query for entries with salary=75000,
> but a Lucene query for the same salary returns no results:
> OQL Query:
> {code}
> gfsh>query --query="select * from /example-region where salary=75000"
> Result : true
> Limit : 100
> Rows : 2
> contacts | email | emplNumber | firstName |
> hoursPerWeek | lastName | salary | startDate
> ------------------ | --------------------- | ---------- | --------- |
> ------------ | -------- | ------ | -------------
> org.json.JSONArray | [email protected] | 10003 | Kris | 40
> | Call | 75000 | 1502397254080
> org.json.JSONArray | [email protected] | 10028 | Pat | 40
> | Puts | 75000 | 1502397254080
> {code}
> Lucene Query:
> {code}
> gfsh>search lucene --name=simpleIndex --region=example-region
> --queryStrings="salary:75000" --defaultField=salary
> No results
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)