create index `test_cover` on bucket(id, meta, `values`) where form="product"
Regular index
create index `test_form` on bucket(form) where form="product"
I’m seeing unexpected behavior with covering index.
The following query does not return all docs that should be in the index
select * from bucket use index (`test_cover`) where form = 'product'
but non-covering index does
select * from bucket where form = 'product'
Is this a bug…?
Update1: Is there size limitation on covered field? Only diff I see between indexed doc and unindexed doc is that unindexed doc has larger values field.
There is limit on index key size. If that limit exceeds it will not index that document and entry will be logged in indexer.log . This is been expected.
You have 2 options
Reduce the number of index keys or size of index key