An attempt to index field values of zero-length causes LMDB error.
It because LMDB not support for that key length.
So currently zero-length values doesn't indexing, i.e. it is treated as nulls.
But that solution may have problems with some filters (like "$has") which differentiates nulls and empty values.
One of possible solutions is adding some character to all values (of string and binary types) when converting to keys.
An attempt to index field values of zero-length causes LMDB error.
It because LMDB not support for that key length.
So currently zero-length values doesn't indexing, i.e. it is treated as
nulls.But that solution may have problems with some filters (like
"$has") which differentiates nulls and empty values.One of possible solutions is adding some character to all values (of string and binary types) when converting to keys.