public class SearchResultsWrapper extends Object
search interface.| 限定符和类型 | 类和说明 |
|---|---|
static class |
SearchResultsWrapper.IDScore
Internal-use class to wrap response of
search interface. |
| 构造器和说明 |
|---|
SearchResultsWrapper(@NonNull SearchResultData results) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<?> |
getFieldData(@NonNull String fieldName,
int indexOfTarget)
Gets data for an output field which is specified by search request.
|
List<SearchResultsWrapper.IDScore> |
getIDScore(int indexOfTarget)
Gets ID-score pairs returned by search interface.
|
public SearchResultsWrapper(@NonNull
@NonNull SearchResultData results)
public List<?> getFieldData(@NonNull @NonNull 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 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 toParamExceptionIllegalResponseExceptionCopyright © 2023. All rights reserved.