Select count(name) from default where name is not missing and CONTAINS(name,‘z’)
in any of document i does not have any name contains ‘z’ but when run this it shows total count of documents available in bucket
if i change query to
Select count(meta().id) from default where name is not missing and CONTAINS(name,‘z’)
it shows count zero which is correct but count is slow