@@ -312,6 +312,30 @@ You can also query with:
312312- ** Sparse only** : Provide only ` sparseIndices ` and ` sparseValues `
313313- ** Hybrid** : Provide all three for combined results
314314
315+ ## Updating Filters
316+
317+ Use ` index.updateFilters() ` to update the filter fields of existing vectors without re-upserting them.
318+
319+ ``` java
320+ import io.endee.client.types.UpdateFilterParams ;
321+ import java.util.List ;
322+ import java.util.Map ;
323+
324+ index. updateFilters(List . of(
325+ new UpdateFilterParams (" vec1" , Map . of(" category" , " ml" , " score" , 95 )),
326+ new UpdateFilterParams (" vec2" , Map . of(" category" , " science" , " score" , 80 ))
327+ ));
328+ ```
329+
330+ ** ` UpdateFilterParams ` Fields:**
331+
332+ | Field | Required | Description |
333+ | -------- | -------- | -------------------------------------------------- |
334+ | ` id ` | Yes | ID of the vector to update |
335+ | ` filter ` | Yes | New filter object to replace the existing filter |
336+
337+ > ** Note:** The entire filter object is replaced, not merged.
338+
315339## Deletion Methods
316340
317341### Delete by ID
@@ -522,9 +546,10 @@ public class EndeeExample {
522546
523547| Method | Parameters | Return Type | Description |
524548| ----------------------------- | ---------- | ------------------- | -------------------------- |
525- | ` upsert(List<VectorItem>) ` | ` vectors ` | ` String ` | Insert or update vectors |
526- | ` query(QueryOptions) ` | ` options ` | ` List<QueryResult> ` | Search for similar vectors |
527- | ` deleteVector(String id) ` | ` id ` | ` String ` | Delete a vector by ID |
549+ | ` upsert(List<VectorItem>) ` | ` vectors ` | ` String ` | Insert or update vectors |
550+ | ` query(QueryOptions) ` | ` options ` | ` List<QueryResult> ` | Search for similar vectors |
551+ | ` updateFilters(List<UpdateFilterParams>) ` | ` updates ` | ` String ` | Update filter fields on existing vectors |
552+ | ` deleteVector(String id) ` | ` id ` | ` String ` | Delete a vector by ID |
528553| ` deleteWithFilter(List<Map>) ` | ` filter ` | ` String ` | Delete vectors by filter |
529554| ` getVector(String id) ` | ` id ` | ` VectorInfo ` | Get a vector by ID |
530555| ` describe() ` | - | ` IndexDescription ` | Get index metadata |
0 commit comments