Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
1
-
SDK06: FIT, PS, CXX
-
High
Description
Release notes: N/A. (I don't think is worth mentioning)
Java returns a CouchbaseException instead of the expected InvalidArgumentException when the value of k < 1 in vector search query options.
Repo:
- Pass K = 0 in VectorQuery options.
Error:
initiated {
|
seconds: 1706615712 |
nanos: 231000000 |
}
|
sdk {
|
exception {
|
couchbase {
|
name: "CouchbaseException" |
serialized: "com.couchbase.client.core.error.CouchbaseException: Unknown search error: \"rest_index: Query, indexName: global_vector_index_e5e501, err: bleve: QueryBleve parsing searchRequest, err: k must be greater than 0 and vector must be non-empty\" {\"completed\":true,\"coreId\":\"0xa0767d2f00000024\",\"httpBody\":\"\\\"rest_index: Query, indexName: global_vector_index_e5e501, err: bleve: QueryBleve parsing searchRequest, err: k must be greater than 0 and vector must be non-empty\\\"\",\"httpStatus\":400,\"idempotent\":true,\"lastDispatchedFrom\":\"127.0.0.1:52160\",\"lastDispatchedTo\":\"localhost:25308\",\"requestId\":15504,\"requestType\":\"ServerSearchRequest\",\"retried\":0,\"service\":{\"indexName\":\"global_vector_index_e5e501\",\"type\":\"search\"},\"status\":\"INVALID_ARGS\",\"timeoutMs\":75000,\"timings\":{\"dispatchMicros\":1257093,\"totalDispatchMicros\":1257093,\"totalMicros\":1260176}}" |
}
|
}
|
}
|
Attachments
Gerrit Reviews
For Gerrit Dashboard: JVMCBC-1476 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
205209,2 | JVMCBC-1476: Java returns a CouchbaseException instead of the expected InvalidArgumentException when the value of k < 1 in vector search query options | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |