mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Add log for search (#12625)
Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
b97e88e859
commit
ed58c277e3
@ -977,6 +977,7 @@ func (q *queryCollection) search(msg queryMsg) error {
|
||||
searchResults := make([]*SearchResult, 0)
|
||||
|
||||
// historical search
|
||||
log.Debug("historical search start", zap.Int64("msgID", msg.ID()))
|
||||
hisSearchResults, sealedSegmentSearched, err := q.historical.search(searchRequests, collection.id, searchMsg.PartitionIDs, plan, travelTimestamp)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -984,6 +985,7 @@ func (q *queryCollection) search(msg queryMsg) error {
|
||||
searchResults = append(searchResults, hisSearchResults...)
|
||||
tr.Record("historical search done")
|
||||
|
||||
log.Debug("streaming search start", zap.Int64("msgID", msg.ID()))
|
||||
for _, channel := range collection.getVChannels() {
|
||||
var strSearchResults []*SearchResult
|
||||
strSearchResults, err := q.streaming.search(searchRequests, collection.id, searchMsg.PartitionIDs, channel, plan, travelTimestamp)
|
||||
|
Loading…
Reference in New Issue
Block a user