Closed abubelinha closed 2 years ago
The two queries are equivalent. The "in" version is so much faster that an "or" query is replaced with the "in" query internally, if possible.
There's no particular reason the portal always uses "or" predicates.
I've documented the matchCase argument, it will appear with the next significant change to the portal. It can be used with "equals", "in" and "like" predicates.
As far as I understand, these two queries would produce the same output?
in
:or
+ multipleequals
First construction with
in
is much simpler, and the examples in API documentation for Occurrence Download Predicates use it [link to new version]. So I wonder why when using data portal web interface to construct a download, and then clicking the API option to see how the json request looks like, it always uses theor
version instead of usingin
.Is the download file construction slower in one case than in the other?
Also, is the
"matchCase": false
also valid for using with"type:"in"
predicates? (I didn't see it in the doc examples ... is it documented elsewhere?)Thanks