Package io.milvus.client
Class SearchResponse
- java.lang.Object
-
- io.milvus.client.SearchResponse
-
public class SearchResponse extends Object
Contains the returnedresponseandqueryResultsListforsearch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchResponse.QueryResultRepresents a single result of a vector query.
-
Constructor Summary
Constructors Constructor Description SearchResponse(Response response, List<List<SearchResponse.QueryResult>> queryResultsList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<List<SearchResponse.QueryResult>>getQueryResultsList()ResponsegetResponse()List<List<Double>>getResultDistancesList()List<List<Long>>getResultIdsList()StringtoString()
-
-
-
Constructor Detail
-
SearchResponse
public SearchResponse(Response response, List<List<SearchResponse.QueryResult>> queryResultsList)
-
-
Method Detail
-
getQueryResultsList
public List<List<SearchResponse.QueryResult>> getQueryResultsList()
- Returns:
- a
ListofQueryResults. Each innerListcontains the query result of a vector.
-
getResultIdsList
public List<List<Long>> getResultIdsList()
- Returns:
- a
Listof result ids. Each innerListcontains the result ids of a vector.
-
getResponse
public Response getResponse()
-
-