Amazon Web Services has widened the filtering options in DynamoDB vector search. Inline filters on a SearchVectors request, which until now could only test whether an attribute equals a value, can now use numeric ranges, value lists, existence checks and full Boolean logic. AWS announced the change on November 20, 2026.
The update matters for anyone building semantic search or retrieval-augmented generation (RAG) on top of DynamoDB. Similarity alone rarely gives the right answer in a real application, because users also care about price, date, category or availability. Richer filters let the database narrow results during the search instead of leaving that work to application code.
What Changed
DynamoDB vector indexes keep embeddings next to the regular item data. A SearchVectors call then hands back the items whose embeddings sit nearest to a query vector. The filter on that call is the SearchConditionExpression parameter. It now accepts the following:
- Range comparisons with less than, less than or equal, greater than and greater than or equal on Number attributes
- An inclusive BETWEEN clause on Number attributes
- An IN clause that checks membership in a set of up to 100 values
- The attribute_exists and attribute_not_exists functions
- The logical operators AND, OR and NOT, with parentheses for grouping
- Equality and inequality on String, Number and Binary attributes
AWS says the filter is applied while the search runs, so every item that comes back satisfies the condition. The new operators work in every Region that already offers DynamoDB vector search.
Key Rules From the Developer Guide
The new reference page in the DynamoDB Developer Guide spells out several limits. Conditions can only name top-level attributes that were declared in the index SearchSchema, and the right side of each comparison must be a value placeholder. Comparing two attributes with each other is not allowed.
Range operators and BETWEEN are rejected on String or Binary attributes. If you need a range on something like a date, keep it as a number, such as an epoch timestamp, and list that attribute as an inline filter. Note that attributes can only be added to a SearchSchema when the vector index is created.
Missing attributes need care. An equality, range, BETWEEN or IN test skips any item lacking the attribute, but an inequality or NOT condition does match it. Add an attribute_exists check when you want to leave such items out.
Indexes with a vector index partition key follow stricter rules. Every request must include exactly one equality condition on that key, placed at the top level and joined with AND. OR, NOT, IN and BETWEEN cannot touch the partition key, so searching several partition values means one call per value.
Limits and Precision
Each comparison, BETWEEN clause, IN clause and function call counts as one condition toward a per-expression maximum. The logical operators and parentheses do not count, and an IN clause counts once no matter how many values it lists. Requests over the limit fail with a ValidationException.
One detail could surprise teams with very precise numbers. SearchVectors compares numbers as 64-bit double precision values, while Query, Scan and item-level condition expressions compare them exactly with up to 38 digits. Results agree for values with 15 or fewer significant digits, but numbers with more digits may collapse into one identical double.
What It Means for Developers
The biggest win is simpler code. Before this update, a search that needed a price band or a set of brands had to over-fetch results and trim them in the application. That wasted read capacity and made it hard to know how many usable results a call would return.
Because the filter now runs inside the search, a product search can ask for the closest matches within a budget and a brand list in one request. A RAG pipeline can limit retrieved chunks to certain document types published after a cutoff date, which keeps stale or irrelevant context away from the model.
Plan your schema with the filters in mind. Decide early which attributes need to be filterable, store dates and scores as numbers, and keep the condition count small. Teams that already use FilterExpression in Query and Scan will find the syntax familiar, since it uses the same name and value placeholder pattern.
The site recently covered other DynamoDB changes, including bulk item writes through S3 import and caching with ElastiCache Serverless for Valkey.
How to Get Started
No upgrade or opt-in step is needed. Existing vector indexes can use the new operators right away on any inline filter attributes their SearchSchema already declares. Pass the expression in SearchConditionExpression, with names in ExpressionAttributeNames and values in ExpressionAttributeValues.
The Developer Guide includes a Python example that combines IN, BETWEEN and OR against a product catalog index, plus a full list of validation errors. Reading that error list before rollout will save debugging time later.
Conclusion
Range, list and Boolean filters turn DynamoDB vector search from a basic similarity lookup into a tool that can answer realistic product and RAG queries in one call. The main things to watch are how the partition key must be filtered, the cap on conditions and the double-precision number comparison.
Sources
- AWS What's New: Amazon DynamoDB vector search now supports new inline filter operators
- Amazon DynamoDB Developer Guide: SearchConditionExpression reference for vector indexes
See my articles more often when you search Google.
