Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-690

PyMongo driver docs don't mention text search

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.7.1, 3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Index creation can be done for several types, but text indexes aren't mentioned. Here are the docs:

      Create Index: http://api.mongodb.org/python/current/api/pymongo/collection.html#pymongo.collection.Collection.create_index

      Ensure Index: http://api.mongodb.org/python/current/api/pymongo/collection.html#pymongo.collection.Collection.ensure_index

      Expected documentation:
      All types of index are listed, along with examples.

      Actual doc:
      Many types of index are listed: ascending, haystack, 2dsphere, etc., but not text indexes. Also, no examples are given.

      sample text index creation example:

      db.collection.ensure_index([("field": "text")])
      

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            william.cross William Cross
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: