I think you should take your "IN" condition in brackets to make it work:
SELECT META().id FROM bucket_name WHERE id = 123 AND (description IN ['Item1','Item2'])
This is due to the priority level of operator evaluation by the N1QL processor.
If you run it with EXPLAIN , it will show how it links conditions to each other.
eg.
explain SELECT META().id FROM bucket_name WHERE id = 123 AND (description IN ['Item1','Item2'])
against
explain SELECT META().id FROM bucket_name WHERE id = 123 AND description IN ['Item1','Item2']
source
share