-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Text indexes always have an empty multikeyPaths vector (same as indexes that do not support path-level tracking). This is because compound text indexes cannot contain other special index types such as multikey and thus, all fields in a text index will always be non-multikey.
We should be able to use this information to add information from text indexes into our path arrayness data structure. Currently, the checks in collection_query_info.cpp that prevent adding paths that have empty multikeyPaths also prevents the text indexes from being added.