Hi,
I tried to run the below query from Java-sdk and couchbase UI, UI is giving the expected result but sdk is giving empty -
Java sdk parameterized query -
query -
SELECT ff_S
.S
.bKey
AS bKey
FROM ff
AS ff_S
WHERE LOWER(ff_S.S.custSId)
LIKE $f1_ff_S_S_custSId AND LOWER(ff_S.S.custID) = $f2_ff_S_S_custID
Parameter
“$f1_ff_S_S_custSId”:"%44%","$f2_ff_S_S_custID":“100000001”
Result - null
Query from UI -
SELECT ff_S
.S
.bKey
AS bKey
FROM ff
AS ff_S
WHERE LOWER(ff_S.S.custSId) LIKE “%44%” AND LOWER(ff_S.S.custID) = “100000001”
Result - expected items in response
Used Index -
CREATE INDEX idx_ff_1 ON ff
(lower((S
.custID
)),(S
.id
),lower((S
.SName
)),lower((S
.custSId
)),(S
.bKey
))
sdk-version - 2.7.6 and 3.0.9 (tried on both, same behavior)