Skip to content

Commit 638a737

Browse files
committed
changing visibility of parseQueryVector method
1 parent 3833517 commit 638a737

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

server/src/main/java/org/elasticsearch/search/vectors/KnnVectorQueryBuilder.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,7 @@ public class KnnVectorQueryBuilder extends AbstractQueryBuilder<KnnVectorQueryBu
6969
args -> new KnnVectorQueryBuilder((String) args[0], (float[]) args[1], (Integer) args[2], (Float) args[3])
7070
);
7171

72-
/**
73-
* Utility method to parse the provided {query_vector} parameter. Supports the following formats:
74-
* - array of floats, as an n-dimensional vector
75-
* - single number, as a 1-dimensional vector
76-
* - string, as a hex-encoded byte vector
77-
*
78-
* @return an array of floats representing the provided query vector
79-
*/
80-
public static float[] parseQueryVector(XContentParser parser) throws IOException {
72+
static float[] parseQueryVector(XContentParser parser) throws IOException {
8173
XContentParser.Token token = parser.currentToken();
8274
return switch (token) {
8375
case START_ARRAY -> parseQueryVectorArray(parser);

0 commit comments

Comments
 (0)