milvus/internal/reader/result.go
bigsheeper 88a3fa31fa Refactor query node and services
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2020-11-05 10:52:50 +08:00

35 lines
968 B
Go

package reader
type ResultEntityIds []UniqueID
type SearchResult struct {
ResultIds []UniqueID
ResultDistances []float32
}
//
//func (node *QueryNode) PublishSearchResult(results *msgpb.QueryResult) commonpb.Status {
// var ctx = context.Background()
//
// node.messageClient.SendResult(ctx, *results, results.ProxyId)
//
// return commonpb.Status{ErrorCode: commonpb.ErrorCode_SUCCESS}
//}
//
//func (node *QueryNode) PublishFailedSearchResult() commonpb.Status {
// var results = msgpb.QueryResult{}
//
// var ctx = context.Background()
//
// node.messageClient.SendResult(ctx, results, results.ProxyId)
// return commonpb.Status{ErrorCode: commonpb.ErrorCode_SUCCESS}
//}
//
//func (node *QueryNode) PublicStatistic(statisticData *[]internalpb.SegmentStatistics) commonpb.Status {
// var ctx = context.Background()
//
// node.messageClient.SendSegmentsStatistic(ctx, statisticData)
//
// return commonpb.Status{ErrorCode: commonpb.ErrorCode_SUCCESS}
//}