Skip to content

Conversation

bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Sep 26, 2025

Note

The massive diff is on account of updated protobufs.

This PR adds support for Not and ContainsNone operators in Weaviate v1.33.

Here's an example of the 2 new operators in action, used to filter out objects which have Not (source Like "pr-") and tags ContainsNone ["dev", "test"]

.where(
  Where.not(Where.property("source").like("pr-")),
  Where.property("tags").containsNone("dev", "test")
)

Or, using a shorthand negation:

.where(
  Where.property("source").like("pr-").not(),
  Where.property("tags").containsNone("dev", "test")
)

@bevzzz bevzzz requested a review from antas-marcin September 26, 2025 12:36
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@bevzzz bevzzz merged commit ddb3ef2 into v6 Sep 26, 2025
2 checks passed
@bevzzz bevzzz deleted the v6-contains_none-not branch September 26, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant