File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed
it/java/io/weaviate/integration
main/java/io/weaviate/client6/v1/api/collections/query Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 2525import io .weaviate .client6 .v1 .api .collections .data .DeleteManyResponse ;
2626import io .weaviate .client6 .v1 .api .collections .data .Reference ;
2727import io .weaviate .client6 .v1 .api .collections .query .Metadata ;
28+ import io .weaviate .client6 .v1 .api .collections .query .Metadata .MetadataField ;
2829import io .weaviate .client6 .v1 .api .collections .query .QueryMetadata ;
2930import io .weaviate .client6 .v1 .api .collections .query .QueryReference ;
3031import io .weaviate .client6 .v1 .api .collections .query .Where ;
@@ -54,7 +55,7 @@ public void testCreateGetDelete() throws IOException {
5455 var object = artists .query .byId (id , query -> query
5556 .returnProperties ("name" )
5657 .returnMetadata (
57- Metadata .VECTOR ,
58+ MetadataField .VECTOR ,
5859 Metadata .CREATION_TIME_UNIX , Metadata .LAST_UPDATE_TIME_UNIX ));
5960
6061 Assertions .assertThat (artists .data .exists (id ))
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ public final SelfT returnMetadata(List<Metadata> metadata) {
172172
173173 /** Include default vector. */
174174 public final SelfT includeVector () {
175- return returnMetadata (Metadata .VECTOR );
175+ return returnMetadata (MetadataField .VECTOR );
176176 }
177177
178178 /** Include one or more named vectors in the metadata response. */
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public final Builder returnMetadata(List<Metadata> metadata) {
8686
8787 /** Include default vector. */
8888 public final Builder includeVector () {
89- return returnMetadata (Metadata .VECTOR );
89+ return returnMetadata (MetadataField .VECTOR );
9090 }
9191
9292 /** Include one or more named vectors in the metadata response. */
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ public interface Metadata {
1313
1414 /** Include metadata in the metadata response. */
1515 public static final Metadata ALL = MetadataField .ALL ;
16- /** Include associated vector in the metadata response. */
17- public static final Metadata VECTOR = MetadataField .VECTOR ;
1816 /** Include object creation time in the metadata response. */
1917 public static final Metadata CREATION_TIME_UNIX = MetadataField .CREATION_TIME_UNIX ;
2018 /** Include last update time in the metadata response. */
Original file line number Diff line number Diff line change @@ -128,7 +128,18 @@ public final Builder returnMetadata(List<Metadata> metadata) {
128128
129129 /** Include the default vector of the referenced object. */
130130 public final Builder includeVector () {
131- return returnMetadata (Metadata .VECTOR );
131+ return returnMetadata (MetadataField .VECTOR );
132+ }
133+
134+ /** Include one or more named vectors in the metadata response. */
135+ public final Builder includeVector (String ... vectors ) {
136+ return includeVector (Arrays .asList (vectors ));
137+ }
138+
139+ /** Include one or more named vectors in the metadata response. */
140+ public final Builder includeVector (List <String > vectors ) {
141+ this .includeVectors .addAll (vectors );
142+ return this ;
132143 }
133144
134145 @ Override
You can’t perform that action at this time.
0 commit comments