CQL filter treats Number as String on MongoDB DataStore

Description

In Mongodb datastore, the CQL filter on rule like this 'myproperty > 0' treats all kind of number as a String.
myproperty's definition is

Schemas Document

1 2 3 4 5 6 7 8 9 ... { "localName" : "myproperty", "minOccurs" : 0, "maxOccurs" : 1, "type" : { "binding" : "java.lang.Double" }, "userData" : { "mapping" : "myproperty" } } ...

The corrispondent mongodb's query is:

Logged query on mongod shell

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 { "myproperty": { $gt: "0" }, geometry: { $geoIntersects: { $geometry: { type: "Polygon", coordinates: [ [ [ -36.92910748026556, 11.76353617582845 ], [ -36.92910748026556, 71.55677632417155 ], [ 99.85879498026557,71.55677632417155 ], [ 99.85879498026557, 11.76353617582845 ], [-36.92910748026556, 11.76353617582845 ] ] ] } } } }

Environment

Windows 7 64bit, Mongodb 3.0, GeoServer 2.10.1

Status

Assignee

Unassigned

Reporter

Sante Barbuto

Triage

None

Components

Affects versions

16.1

Priority

High
Configure