Use internal dsl and placeholder group (#5033)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-04-25 14:08:28 +08:00 committed by GitHub
parent 7c14682c89
commit 4197b094bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,23 +270,18 @@ func (s *searchCollection) search(searchMsg *msgstream.SearchMsg) error {
defer sp.Finish()
searchMsg.SetTraceCtx(ctx)
searchTimestamp := searchMsg.Base.Timestamp
var queryBlob = searchMsg.Query.Value
query := milvuspb.SearchRequest{}
err := proto.Unmarshal(queryBlob, &query)
if err != nil {
return errors.New("unmarshal query failed")
}
collectionID := searchMsg.CollectionID
collection, err := s.replica.getCollectionByID(collectionID)
if err != nil {
return err
}
dsl := query.Dsl
dsl := searchMsg.Dsl
plan, err := createPlan(*collection, dsl)
if err != nil {
return err
}
searchRequestBlob := query.PlaceholderGroup
searchRequestBlob := searchMsg.PlaceholderGroup
searchReq, err := parseSearchRequest(plan, searchRequestBlob)
if err != nil {
return err