mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
issue: #33285 - move most cgo opeartions related to search/query into segcore package for reusing for streamingnode. - add go unittest for segcore operations. Signed-off-by: chyezh <chyezh@outlook.com>
22 lines
411 B
Go
22 lines
411 B
Go
package segments
|
|
|
|
import "github.com/milvus-io/milvus/internal/util/segcore"
|
|
|
|
type (
|
|
SearchRequest = segcore.SearchRequest
|
|
SearchResult = segcore.SearchResult
|
|
SearchPlan = segcore.SearchPlan
|
|
RetrievePlan = segcore.RetrievePlan
|
|
)
|
|
|
|
func DeleteSearchResults(results []*SearchResult) {
|
|
if len(results) == 0 {
|
|
return
|
|
}
|
|
for _, result := range results {
|
|
if result != nil {
|
|
result.Release()
|
|
}
|
|
}
|
|
}
|