Skip to content

Commit 9338d9a

Browse files
added filter for vector lengths
1 parent 8431cdb commit 9338d9a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

posting/index.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ func (mp *MutationPipeline) InsertTokenizerIndexes(ctx context.Context, pipeline
187187

188188
for _, token := range tokens {
189189
key := x.IndexKey(pipeline.attr, token)
190-
//pk, _ := x.Parse([]byte(key))
191-
//fmt.Println("TOKENS", stringValue, i, numGo, pk)
190+
pk, _ := x.Parse([]byte(key))
191+
fmt.Println("TOKENS", stringValue, i, numGo, pk)
192192
val, ok := localMap[string(key)]
193193
if !ok {
194194
val = &pb.PostingList{}
@@ -199,8 +199,8 @@ func (mp *MutationPipeline) InsertTokenizerIndexes(ctx context.Context, pipeline
199199
}
200200

201201
for key, value := range localMap {
202-
//pk, _ := x.Parse([]byte(key))
203-
//fmt.Println("LOCAL MAP", pk, numGo, value)
202+
pk, _ := x.Parse([]byte(key))
203+
fmt.Println("LOCAL MAP", pk, numGo, value)
204204
globalMap.Update(key, func(val *pb.PostingList, ok bool) *pb.PostingList {
205205
if ok {
206206
val.Postings = append(val.Postings, value.Postings...)

worker/sort_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func TestStringIndexWithLang(t *testing.T) {
186186
list, err := txnRead.Get(key)
187187
require.NoError(t, err)
188188

189-
fmt.Println(list.GetLangTags()
189+
fmt.Println(list.GetLangTags(10))
190190
}
191191

192192
func TestDeleteSetWithVarEdgeCorruptsData(t *testing.T) {

0 commit comments

Comments
 (0)