try:
    import bson
except ImportError:
    raise ImportError("bson library not installed. Install pymongo >= 1.9 https://github.com/mongodb/mongo-python-driver")

# also update in setup.py
version = "1.3"
version_info = (1, 3)

ASCENDING = 1
"""Ascending sort order."""
DESCENDING = -1
"""Descending sort order."""
GEO2D = "2d"
"""Index specifier for a 2-dimensional `geospatial index`"""

from errors import (Error, InterfaceError, AuthenticationError, DatabaseError, RSConnectionError,
                    DataError, IntegrityError, ProgrammingError, NotSupportedError)

from client import Client

try:
    import bson
except ImportError:
    raise ImportError("bson library not installed. Install pymongo >= 1.9 https://github.com/mongodb/mongo-python-driver")

# also update in setup.py
version = "1.3"
version_info = (1, 3)

ASCENDING = 1
"""Ascending sort order."""
DESCENDING = -1
"""Descending sort order."""
GEO2D = "2d"
"""Index specifier for a 2-dimensional `geospatial index`"""
TEXT = '{ $meta: "textScore" }'
"""TEXT Index sort order."""

from errors import (Error, InterfaceError, AuthenticationError, DatabaseError, RSConnectionError,
                    DataError, IntegrityError, ProgrammingError, NotSupportedError)

from client import Client

Support Sort Order For TEXT Index
Support Sort Order For TEXT Index

  try:
      import bson
  except ImportError:
      raise ImportError("bson library not installed. Install pymongo >= 1.9 https://github.com/mongodb/mongo-python-driver")
  
  # also update in setup.py
  version = "1.3"
  version_info = (1, 3)
  
  ASCENDING = 1
  """Ascending sort order."""
  DESCENDING = -1
  """Descending sort order."""
  GEO2D = "2d"
  """Index specifier for a 2-dimensional `geospatial index`"""
+ TEXT = '{ $meta: "textScore" }'
+ """TEXT Index sort order."""
  
  from errors import (Error, InterfaceError, AuthenticationError, DatabaseError, RSConnectionError,
                      DataError, IntegrityError, ProgrammingError, NotSupportedError)
  
  from client import Client
  
Support Sort Order For TEXT Index
## Code Before:
try:
    import bson
except ImportError:
    raise ImportError("bson library not installed. Install pymongo >= 1.9 https://github.com/mongodb/mongo-python-driver")

# also update in setup.py
version = "1.3"
version_info = (1, 3)

ASCENDING = 1
"""Ascending sort order."""
DESCENDING = -1
"""Descending sort order."""
GEO2D = "2d"
"""Index specifier for a 2-dimensional `geospatial index`"""

from errors import (Error, InterfaceError, AuthenticationError, DatabaseError, RSConnectionError,
                    DataError, IntegrityError, ProgrammingError, NotSupportedError)

from client import Client

## Instruction:
Support Sort Order For TEXT Index
## Code After:
try:
    import bson
except ImportError:
    raise ImportError("bson library not installed. Install pymongo >= 1.9 https://github.com/mongodb/mongo-python-driver")

# also update in setup.py
version = "1.3"
version_info = (1, 3)

ASCENDING = 1
"""Ascending sort order."""
DESCENDING = -1
"""Descending sort order."""
GEO2D = "2d"
"""Index specifier for a 2-dimensional `geospatial index`"""
TEXT = '{ $meta: "textScore" }'
"""TEXT Index sort order."""

from errors import (Error, InterfaceError, AuthenticationError, DatabaseError, RSConnectionError,
                    DataError, IntegrityError, ProgrammingError, NotSupportedError)

from client import Client
