Support extracting and indexing map entries

Description

Currently one must chose between indexing keys or values, but what if we want both?

It would make perfect sense in some scenarios, such as a map of "spending per year": you would want to be able to use a nested predicate to look for documents where spendings were in a given range for a given year, and in order to do that you will need to index both the year and spending in the same nested document.

Another use case would be for projections, if one want to index a map for the sole purpose of being able to retrieve its value from the index. Then indexing entries would make more sense than indexing keys and values separately.

Related to HSEARCH-3688: I'm pretty sure both tickets will require an overhaul of the container extractors.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major