“Unknown Error: mango_idx :: {no_usable_index,missing_sort_index}”}
问题 I have the following query: {'type': 'text', 'name': 'album-rating-text', 'index': {'fields': [ {'type': 'string', 'name': 'user_id'}, {'type': 'string', 'name': 'album_id'}, {'type': 'number', 'name': 'timestamp'} ]}} Here is the query: {'sort': [ {'user_id': 'desc'}, {'album_id': 'desc'}, {'timestamp': 'desc'} ], 'limit': 1, 'fields': ['user_id', 'album_id', 'timestamp'], 'selector': { '$and': [ {'user_id': {'$eq': 'a@a.com'}}, {'album_id': {'$in': ['bf129f0d', '380e3a05' ] }}]}} The error: