AWS Security ChangesHomeSearch

AWS documentdb documentation change

Service: documentdb · 2025-11-16 · Documentation low

File: documentdb/latest/developerguide/vector-search.md

Summary

Added documentation for new $vectorSearch operator including HNSW/IVFFlat algorithms, syntax, and performance characteristics

Security assessment

The changes introduce a new search operator and explain its technical implementation details. While the operator enables vector search capabilities, there is no mention of security controls, vulnerability mitigations, or security-related configuration in the added content. The 2000-dimension limit is a technical constraint rather than a security measure.

Diff

diff --git a/documentdb/latest/developerguide/vector-search.md b/documentdb/latest/developerguide/vector-search.md
index 05f2ee2ad..b4bb07657 100644
--- a//documentdb/latest/developerguide/vector-search.md
+++ b//documentdb/latest/developerguide/vector-search.md
@@ -5 +5 @@
-Inserting vectorsCreating a vector indexGetting an index definitionQuerying vectorsFeatures and limitationsBest practices
+Inserting vectorsCreating a vector indexGetting an index definitionQuerying vectorsFeatures and limitationsBest practicesNew Operator - $vectorSearch
@@ -26,0 +27,2 @@ Vector search for Amazon DocumentDB combines the flexibility and rich querying c
+  * New Operator - $vectorSearch
+
@@ -341,0 +344,35 @@ Learn best practices for working with vector search in Amazon DocumentDB. This s
+## New Operator - $vectorSearch
+
+Amazon DocumentDB 8.0 supports the MongoDB compatible $vectorSearch operator. Maximum dimension size you can use with $vectorSearch is 2000.
+
+**Key Capabilities**
+
+  * HNSW (Hierarchical Navigable Small Worlds): HNSW builds a multi-layered graph where the top layers have fewer nodes for fast navigation, while lower layers have more nodes for precise searches. Searches start at the top layer and quickly narrow down the search space. The graph structure connects data points based on proximity, with denser connections in lower layers.
+
+  * Improved Performance: HNSW provides better query performance, logarithmic search time scaling, robustness to data distribution, and efficient insertions for dynamic datasets. HNSW is a good choice for dynamic datasets or applications needing the fastest searches and accepting higher memory usage.
+
+  * IVFF (Inverted File with Flat Compression): IVFFlat divides the vector space into clusters using algorithms like k-means clustering. It finds the closest clusters to a query vector and searches within them to find the nearest vectors. IVFFlat offers faster build times and lower memory usage than HNSW, and its searches are easier to parallelize. However, its query performance might be lower for high-recall searches, as it's more sensitive to data distribution and doesn't handle incremental updates as well as HNSW. It is best suited for static datasets or scenarios prioritizing faster build times and lower memory usage
+
+
+
+
+**Syntax**
+    
+    
+       db.collection.aggregate([
+      {
+        $search: {
+          "vectorSearch": {
+            "vector": query vector, 
+            "path": name of the vector_field, 
+            "similarity": distance metric,
+            "k": number of results,
+            "probes":number of probes [applicable for IVFFlat],
+            "efSearch":size of the dynamic list during search [applicable for HNSW]
+          }
+        }
+      }
+    ]);
+       
+       
+