I woulk to use sg_allDocs_1 index to get all documents which are not having _sync in meta().id which has already where condition as below
(not ((meta().id
) like “\_sync:%”))
But when i query below, i am getting error as index not found
select count(*) from db
where (not ((meta().id
) like “\_sync:%”))
Query Response:
“msg”: “No index available on keyspace ptxdata that matches your query. Use CREATE INDEX or CREATE PRIMARY INDEX to create an index, or check that your expected index is online.”,