feat: Add support for dropping property inverted indices#288
Merged
Conversation
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
Summary - Weaviate C# Client CoverageSummary
CoverageWeaviate.Client - 60.9%
Weaviate.Client.Analyzers - 91.1%
|
5fa5458 to
b4d2cdd
Compare
Implements DELETE /schema/{className}/properties/{propertyName}/index/{indexName} for dropping inverted indices from collection properties.
Changes:
- Add PropertyIndexType enum (Filterable, Searchable, RangeFilters)
- Add CollectionConfigClient.DeletePropertyIndex() method
- Update OpenAPI spec and regenerate DTOs with IndexName enum
- Add version guard requiring Weaviate 1.36+
- Update minimum supported version to 1.32.0
- Fix CI configuration for Weaviate 1.35+
- Add comprehensive CI diagnostics
- Standardize Docker registry to cr.weaviate.io
- Fix OBJECTS_TTL_DELETE_SCHEDULE cron spec
d07b991 to
e38d548
Compare
In Weaviate v1.36.0, the backup restore behavior changed. When attempting to restore a backup over an existing collection, the restore endpoint now: - Returns HTTP 200 OK initially - The async operation completes with status FAILED - Error message in response: 'class name ... already exists' Updated the test to check for the failed status and error message rather than expecting an exception, which aligns with how async backup operations report failures through status polling.
dirkkul
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements
DELETE /schema/{className}/properties/{propertyName}/index/{indexName}— drops a specific inverted index from a collection property without affecting the rest of the schema.openapi.jsonand regeneratesModels.g.cs(adds theIndexNameenum:filterable,searchable,rangeFilters)PropertyIndexTypepublic enum (Filterable,Searchable,RangeFilters) mapping toDto.IndexNameCollectionConfigClient.DeletePropertyIndex(propertyName, indexType)public methodWeaviateRestClient.CollectionDeletePropertyIndex()internal REST method — acceptsDto.IndexName(not a raw string) as the source of truth for API valuesWeaviateEndpoints.CollectionPropertyIndex()path helperPublicAPI.Unshipped.txtThe
Dto.IndexNameenum (generated from the spec) carries[JsonStringEnumMemberName]attributes, whichToEnumMemberString()reads to produce the correct camelCase API strings — no manual string maintenance needed.Closes #283
Test plan
DeletePropertyIndex_Filterable_SendsDeleteToCorrectPath—DELETE .../index/filterableDeletePropertyIndex_Searchable_SendsDeleteToCorrectPath—DELETE .../index/searchableDeletePropertyIndex_RangeFilters_SendsDeleteToCorrectPath—DELETE .../index/rangeFiltersPropertyIndexType_ToApiString_ReturnsCorrectValue(3 theory cases) — enum → API string viaDto.IndexName🤖 Generated with Claude Code