File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,8 @@ func (qs *queryState) handleValuePostings(ctx context.Context, args funcArgs) er
376376
377377 outputs := make ([]* pb.Result , numGo )
378378 listType := schema .State ().IsList (q .Attr )
379- pickMultiplePostings := q .DoCount || q .ExpandAll || listType || len (q .Langs ) > 0
379+ hasLang := schema .State ().HasLang (q .Attr )
380+ getMultiplePosting := q .DoCount || q .ExpandAll || listType || hasLang
380381 //pickMultiplePostings := true
381382
382383 calculate := func (start , end int ) error {
@@ -397,7 +398,7 @@ func (qs *queryState) handleValuePostings(ctx context.Context, args funcArgs) er
397398 var vals []types.Val
398399 fcs := & pb.FacetsList {FacetsList : make ([]* pb.Facets , 0 )} // TODO Figure out how it is stored
399400
400- if ! pickMultiplePostings {
401+ if ! getMultiplePosting {
401402 pl , _ := qs .cache .GetSinglePosting (key )
402403 if pl == nil {
403404 out .UidMatrix = append (out .UidMatrix , & pb.List {})
You can’t perform that action at this time.
0 commit comments