-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
EnhancementEnhancement to existing featureEnhancement to existing featureFeature - CollectionsIssue impacts users of CollectionsIssue impacts users of CollectionsOn HoldNot ready for active developmentNot ready for active development
Description
In addition to using proper lexical sort like:
{
"find": {
"sort" : {"$lexical": "banana" }
}
}
spec says one should also be able to use regular sort like:
{
"find": {
"sort" : {"$lexical": 1 }
}
}
but this is not currently tested, and likely not implemented. Let's add tests to verify.
EDIT: added test which fails -- and realized why we might not be able to make this work: if I remember correctly, in-memory sort for Collection documents only works on shredded fields stored in query_xxx_values (like query_text_values), and not on everything stored in doc_json. Given that we have separate query_lexical_value it will not be accessible (it's not map unlike other pseudo-index columns, but in general not included for sorting).
Metadata
Metadata
Assignees
Labels
EnhancementEnhancement to existing featureEnhancement to existing featureFeature - CollectionsIssue impacts users of CollectionsIssue impacts users of CollectionsOn HoldNot ready for active developmentNot ready for active development