public class SearchResultsWrapper
extends java.lang.Object
search interface.| Modifier and Type | Class and Description |
|---|---|
static class |
SearchResultsWrapper.IDScore
Internal-use class to wrap response of
search interface. |
| Constructor and Description |
|---|
SearchResultsWrapper(@NonNull io.milvus.grpc.SearchResultData results) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<?> |
getFieldData(@NonNull java.lang.String fieldName,
int indexOfTarget)
Gets data for an output field which is specified by search request.
|
java.util.List<SearchResultsWrapper.IDScore> |
getIDScore(int indexOfTarget)
Gets ID-score pairs returned by search interface.
|
public SearchResultsWrapper(@NonNull
@NonNull io.milvus.grpc.SearchResultData results)
public java.util.List<?> getFieldData(@NonNull
@NonNull java.lang.String fieldName,
int indexOfTarget)
ParamException if the field doesn't exist.
Throws ParamException if the indexOfTarget is illegal.fieldName - field name to get output dataindexOfTarget - which target vector the field data belongs toFieldDataWrapperpublic java.util.List<SearchResultsWrapper.IDScore> getIDScore(int indexOfTarget) throws ParamException, IllegalResponseException
ParamException if the indexOfTarget is illegal.
Throws IllegalResponseException if the returned results is illegal.indexOfTarget - which target vector the result belongs toParamExceptionIllegalResponseException