I have a couchbase DB with documents stored, like
{
"_host": {
"kind": "KIND1",
"id": "ID1",
..
}
I have created this index:
CREATE INDEX `kind-id-index` ON `dev`(`_host.kind`,`_host.id`)
but when I use this query
@Query("#{#n1ql.selectEntity} where _host.kind=$1 and _host.id=$2 ")
I got this error:
No index available on keyspace dev_wk_state that matches your query.