-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Won't Fix
-
Affects Version/s: 6.0
-
Fix Version/s: 6.0-HF43
-
Component/s: Core MongoDB
-
Release Notes Summary:NXQL Date comparison supports multivalued complex properties
-
Tags:
-
Backlog priority:700
-
Sprint:nxFG 9.3.3
-
Story Points:3
- install Nuxeo 6.0 (latest HF)
- configure it with MongoDB
- copy the attached files into NUXEO_HOME/nxserver/config folder
- add mongodb to the template property in nuxeo.conf
- start a docker for mongodb using:
docker run --name nuxeo-mongo -p 27017:27017 -e MONGODB_DBNAME=nuxeo -d mongo:3.2 --storageEngine wiredTiger
- start nuxeo server
- create a document with a multivalued complex containing a monovalued date field
- try requests like the following:
SELECT * FROM myDocTest WHERE mydoctest:myComplex/*/myDateA BETWEEN TIMESTAMP '2018-01-01T00:00:00' AND TIMESTAMP '2020-01-01T00:00:00' SELECT * FROM myDocTest WHERE mydoctest:myComplex/*/myDateA > TIMESTAMP '2000-01-01T00:00:00'
This gives an empty result:
No documents match your search criteria
Doing the same with 7.10 and later versions works fine and returns the expected document.