I am creating a date filter like so

<PropertyIsGreaterThan>
  <PropertyName>
    date
  </PropertyName>
  <Function name="parseDate">
    <Literal>yyyy-MM-dd</Literal>
    <Literal>2015-07-01</Literal>
  </Function>
</PropertyIsGreaterThan>

The query string getting sent to MongoDB from geoserver looks like
{
  "date" : {
    "$gt" : "Wed Jul 01 00:00:00 UTC 2015"
  }
}

But the query returns nothing. That is because the date is getting passed into 
Mongo as a string instead of a Date.

The query below is what the query generated by geoserver should look like
{
  "date" : {
    "$gt" : ISODate("2015-07-01T00:00:00Z")
  }
}

I know that the MongoDB store is unsupported. I am just looking for hints so I 
can fix the problem. 
Can someone point me to the class that builds the query string?

Thanks,

Nathan
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to