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

Allow passing arbitrary options to create_search_index models

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.7
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Context

      We should allow passing arbitrary options to create_search_index models. This will make create_search_index/create_search_indexes more future proof. For example with this change users would have been able to create vectorSearch type indexes without waiting for PYTHON-4208.

      Definition of done

      The following code should send newField in the createSearchIndexes command:

      coll.create_search_index(model={"definition": {...}, "newField": 1})
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: