You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Diane Hardman (JIRA)" <ji...@apache.org> on 2017/12/28 18:48:00 UTC

[jira] [Updated] (GEODE-4155) Lucene search in gfsh fails for integer values

     [ https://issues.apache.org/jira/browse/GEODE-4155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Diane Hardman updated GEODE-4155:
---------------------------------
    Issue Type: Improvement  (was: Bug)

> 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
>             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 | Kris.Call@example.com | 10003      | Kris      | 40           | Call     | 75000  | 1502397254080
> org.json.JSONArray | Pat.Puts@example.com  | 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
(v6.4.14#64029)