Hi there today I upgraded my couchbase package and i run into the issue with query
“SELECT META().id FROM adminDB WHERE (type = 'conversation') AND ANY v in userRecipients SATISFIES ((LOWER(v.firstName) LIKE '%rado%' OR LOWER(v.lastName) LIKE '%rado%')) END”
In 3.2 it throws error
Error Domain=CouchbaseLite Code=23 “N1QL syntax error near character 170” UserInfo={NSLocalizedDescription=N1QL syntax error near character 170}
Seems like SATISFIES has an extra, redundant, set of ().
Please try without them: SELECT META().id FROM adminDB WHERE (type = 'conversation') AND ANY v in userRecipients SATISFIES (LOWER(v.firstName) LIKE '%rado%' OR LOWER(v.lastName) LIKE '%rado%') END
Removing brackets helped but im not sure how do we create more complicated clauses if brackets are causing issue.
Thanks for help for me its sufficient