Skip to content

Commit 653a347

Browse files
committed
doc: fix javadoc
Replace @see with See. Refactor ById to use the new Where.uuid() shorthand.
1 parent 686d486 commit 653a347

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)