Skip to content
This repository was archived by the owner on Nov 5, 2019. It is now read-only.
This repository was archived by the owner on Nov 5, 2019. It is now read-only.

Support for {'$meta': 'textScore'} in sort for mongo 2.6 #71

Description

@dkliminsky

something:

index = SON()
for (key, value) in index_list:
    if not isinstance(key, basestring):
        raise TypeError("first item in each key pair must be a string")
    if value not in [ASCENDING, DESCENDING, GEO2D, {'$meta': 'textScore'}]:
        raise TypeError("second item in each key pair must be ASCENDING, "
                        "DESCENDING, or GEO2D")
    index[key] = value
return index

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions