Is it possible to query contains some using GQL in AEM?
Example:
title contains: ["Health","doctor","medicine"]
If it contains anyone of them then return true.
One way would be to individually add these elements:
{
_expressions: [
{
_operator:CONTAINS
value:"health"
}
{
_operator:CONTAINS
value:"Health"
}
{
_operator:CONTAINS
value:"healthy"
}
]
However I was interested in knowing a better solution like:
{
_expressions: [
{
_operator:CONTAINS
values: [
"Health",
"health"
]
}
]
}
I get : Cannot compare single value to an array. when I implement the above. I wanted to know the only way possible to query contains_some is by first method?