File tree Expand file tree Collapse file tree
src/main/java/io/weaviate/client6/v1/api/collections/query Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments