Skip to content

Commit 06e84f4

Browse files
added filter for vector lengths
1 parent 1d2f8e6 commit 06e84f4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

posting/index.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ func (mp *MutationPipeline) InsertTokenizerIndexes(ctx context.Context, pipeline
155155
f := func(numGo int) *types.LockedShardedMap[string, *pb.PostingList] {
156156
wg := &sync.WaitGroup{}
157157

158-
indexEdge := &pb.DirectedEdge{
159-
Attr: pipeline.attr,
160-
}
161158

162159
globalMap := types.NewLockedShardedMap[string, *pb.PostingList]()
163160
process := func(start int) {
@@ -168,6 +165,10 @@ func (mp *MutationPipeline) InsertTokenizerIndexes(ctx context.Context, pipeline
168165
op: pb.DirectedEdge_SET,
169166
}
170167

168+
indexEdge := &pb.DirectedEdge{
169+
Attr: pipeline.attr,
170+
}
171+
171172
defer wg.Done()
172173
localMap := make(map[string]*pb.PostingList, len(values)/numGo)
173174
for i := start; i < len(values); i += numGo {

0 commit comments

Comments
 (0)