是否有可能使用注释@Query 在关闭临时标志的情况下执行参数化 N1QL 查询?
即对于给定的查询:
@Query("#{#n1ql.selectEntity} WHERE #{#n1ql.filter} and author = $author")
List<Comment> getCommentsByAuthor(@Param("author") String author);
如果不是,是否有任何其他方法可以强制 couchbase 在注释查询中使用二级索引(在此示例中为作者字段的索引)?