enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

query filter boolan must array with single entry is not expected format #6213

Closed ComLock closed 6 years ago

ComLock commented 6 years ago
2018-04-30 14:25:43,229 INFO  com.enonic.app.eff - (/services/searchService/searchService.js) {
    "filters": {
        "boolean": {
            "must": [
                {
                    "hasValue": {
                        "field": "_references",
                        "values": [
                            "5e673263-8990-4e12-8bb7-dfd2eba84a2a"
                        ]
                    }
                }
            ]
        }
    }
}
2018-04-30 14:25:43,331 ERROR c.e.x.p.i.e.ExceptionRendererImpl - Filter not on expected format
aro commented 6 years ago

@ComLock Can you add the full code example witht the node-lib call? I'm trying to reproduce it.

ComLock commented 6 years ago

The code is not that easy to extract, and was changed before committing.

Perhaps it works in 6.14.2 but not 6.12.2, as in it is fixed already?

aro commented 6 years ago

I think it might have been fixed in one of these:

https://github.com/enonic/xp/issues/5906 https://github.com/enonic/xp/issues/5910

Please test it in 6.14 when you can.