With previous version, I used to execute dynamic N1Ql query like below N1qlQueryResult result = couchbaseTemplate.queryN1QL(N1qlQuery.simple(complexStringQuery));
Now with upgrade, I see queryN1QL is removed and we are supposed to use findByQuery.
But findByQuery does not take string query.
How can I achieve this with newer spring data couchbase version.
If you want to do your own queries then you have to use the Java SDK directly with the Cluster object, like in this example. You can see more detail on this querying in the Java 3.x SDK documentation.
Hi @Deepak_Naik Did you find any solution for your problem, I have same issue that findByQuery is not accepting String query. I can not use couchbase sdk as i have custom deserializer. Any response will be appreciated.