Skip to content

Commit 6aec8ce

Browse files
committed
fix: remove unimplemented method Filter.references
Use new syntax for setting target property
1 parent e4fc6ca commit 6aec8ce

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

  • src/main/java/io/weaviate/client6/v1/api/collections/query

src/main/java/io/weaviate/client6/v1/api/collections/query/Filter.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ public static FilterBuilder property(String property) {
129129
return new FilterBuilder(new PathOperand(property));
130130
}
131131

132-
/** Filter by a property of the referenced object. */
133-
public static FilterBuilder reference(String... path) {
134-
return new FilterBuilder(new PathOperand(path));
135-
}
136-
137132
public static class FilterBuilder {
138133
private final FilterOperand left;
139134

@@ -632,10 +627,11 @@ private PathOperand(String... path) {
632627

633628
@Override
634629
public void appendTo(WeaviateProtoBase.Filters.Builder filter) {
635-
// "on" is deprecated, but the current proto doesn't have "path".
636630
if (!path.isEmpty()) {
637-
filter.addOn(path.get(0));
631+
filter.setTarget(WeaviateProtoBase.FilterTarget.newBuilder()
632+
.setProperty(path.get(0)));
638633
}
634+
639635
// FIXME: no way to reference objects rn?
640636
}
641637

0 commit comments

Comments
 (0)