File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
src/main/java/io/weaviate/client6/v1/api/collections/query Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ public final SELF consistencyLevel(ConsistencyLevel consistencyLevel) {
7777 * {@code gte}, {@code like}, etc.
7878 * Subsequent calls to {@link #where} aggregate with an AND operator.
7979 *
80- * @see {@link Where}
80+ * <p>
81+ * See: {@link Where}
8182 */
8283 public final SELF where (Where where ) {
8384 this .where = this .where == null ? where : Where .and (this .where , where );
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public record ById(
1515 List <QueryReference > returnReferences ,
1616 List <Metadata > returnMetadata ) implements QueryOperator {
1717
18- private static final String ID_PROPERTY = "_id" ;
18+ static final String ID_PROPERTY = "_id" ;
1919
2020 public static ById of (String uuid ) {
2121 return of (uuid , ObjectBuilder .identity ());
@@ -67,7 +67,7 @@ public ById build() {
6767
6868 @ Override
6969 public void appendTo (WeaviateProtoSearchGet .SearchRequest .Builder req ) {
70- var where = Where .property ( ID_PROPERTY ).eq (uuid );
70+ var where = Where .uuid ( ).eq (uuid );
7171 var filter = WeaviateProtoBase .Filters .newBuilder ();
7272 where .appendTo (filter );
7373 req .setFilters (filter );
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public static Where or(List<WhereOperand> operands) {
9797 // --------------------------------------------------------------------------
9898
9999 public static WhereBuilder uuid () {
100- return property ("_id" );
100+ return property (ById . ID_PROPERTY );
101101 }
102102
103103 public static WhereBuilder property (String property ) {
You can’t perform that action at this time.
0 commit comments