I am want to represent a matter that i haven't understand yet . I show you a following example . This is my documents
doc 1 : {"type":"81"}
doc 2 : {"type":"81_"}
doc 3 : {"type":"8"}
doc 4 : {"type":"8_"}
doc 5 : {"type":"13"}
And now, I want to query using n1ql to fetch documents that match type like "8_%" 8_ should be a String prefix
@Query("#{#n1ql.selectEntity} where code like "8_%" ")
**or**
@Query("#{#n1ql.selectEntity} where code like (concat(8,_,'%')) ")
Both of them not correct anwser that i am except.Response should only have one doc is doc 4 : {"type":"8_"} . But this response following documents .
doc 1 : {"type":"81"}
doc 2 : {"type":"81_"}
doc 3 : {"type":"8"}
doc 4 : {"type":"8_"}
Can you help me in situation ? Thank you in advanced .I am using Couchbase 3.1.8 . Sorry my bad english