public class SearchResultsWrapper extends RowRecordWrapper
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.
|
FieldDataWrapper |
getFieldWrapper(@NonNull java.lang.String fieldName)
Gets
FieldDataWrapper for a field. |
java.util.List<SearchResultsWrapper.IDScore> |
getIDScore(int indexOfTarget)
Gets ID-score pairs returned by search interface.
|
java.util.List<QueryResultsWrapper.RowRecord> |
getRowRecords()
Deprecated.
|
java.util.List<QueryResultsWrapper.RowRecord> |
getRowRecords(int indexOfTarget)
Note: this method's function is duplicated with getIDScore(), it is for high-level search.
|
getDynamicWrapper
public SearchResultsWrapper(@NonNull @NonNull io.milvus.grpc.SearchResultData results)
public FieldDataWrapper getFieldWrapper(@NonNull @NonNull java.lang.String fieldName) throws ParamException
FieldDataWrapper
for a field.
Throws ParamException
if the field doesn't exist.fieldName
- field name to get output dataFieldDataWrapper
ParamException
@Deprecated public java.util.List<QueryResultsWrapper.RowRecord> getRowRecords()
getRowRecords
in class RowRecordWrapper
public java.util.List<QueryResultsWrapper.RowRecord> getRowRecords(int indexOfTarget)
indexOfTarget
- index of a rowQueryResultsWrapper.RowRecord
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 toFieldDataWrapper
public 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 toParamException
IllegalResponseException