@@ -38,13 +38,13 @@ What's New in 2.0
3838 changes:
3939
4040 - The following methods return ``void`` instead of the raw command
41- response:
41+ response:
4242
43- - ``MongoDB\Client``: ``dropDatabase()``
44- - ``MongoDB\Collection``: ``drop()``, ``dropIndex()``,
45- ``dropIndexes()``, ``dropSearchIndex()``, ``rename()``
46- - ``MongoDB\Database``: ``createCollection()``, ``drop()``,
47- ``dropCollection()``, ``renameCollection()``
43+ - ``MongoDB\Client``: ``dropDatabase()``
44+ - ``MongoDB\Collection``: ``drop()``, ``dropIndex()``,
45+ ``dropIndexes()``, ``dropSearchIndex()``, ``rename()``
46+ - ``MongoDB\Database``: ``createCollection()``, ``drop()``,
47+ ``dropCollection()``, ``renameCollection()``
4848
4949 To learn more about breaking changes in this release, see the
5050 :ref:`Version 2.0 Breaking Changes <php-v2-breaking-changes>` section
@@ -67,14 +67,14 @@ and removals:
6767- Removes deprecated fields in GridFS types.
6868
6969 - The library does not calculate the ``md5`` field when a file is
70- uploaded to GridFS. If your application requires a file digest, you
71- must implement this process outside GridFS and store the values in
72- metadata.
70+ uploaded to GridFS. If your application requires a file digest, you
71+ must implement this process outside GridFS and store the values in
72+ metadata.
7373
7474 - The fields ``contentType`` and ``aliases`` are no longer stored in
75- the ``files`` GridFS collection. If your application requires this
76- information, you must store it in metadata. To learn more about
77- GridFS, see the :ref:`php-gridfs` guide.
75+ the ``files`` GridFS collection. If your application requires this
76+ information, you must store it in metadata. To learn more about
77+ GridFS, see the :ref:`php-gridfs` guide.
7878
7979- Removes the following deprecated options for find operations:
8080
@@ -164,6 +164,13 @@ improvements, and fixes:
164164 encryption and decryption of the data key locally, ensuring that the
165165 encryption key never leaves the KMIP server.
166166
167+ - Adds the ``type`` option in Search index specifications for
168+ the :phpmethod:`MongoDB\Collection::createIndex()` and
169+ :phpmethod:`MongoDB\Collection::createSearchIndexes()` methods. This
170+ change allows you to create Atlas Vector Search indexes
171+ programmatically. To learn more and view examples, see the
172+ :ref:`php-atlas-search-index` guide.
173+
167174For more information about the changes in this version, see the
168175:github:`v1.20 release notes
169176</mongodb/mongo-php-library/releases/tag/1.20.0>` on GitHub.
0 commit comments