Skip to content

Commit

Permalink
MB-59633: Toy: Removed Encoded Value From Vellum and Set DocValues Ch…
Browse files Browse the repository at this point in the history
…unk Mode to 1
  • Loading branch information
Likith101 committed Sep 3, 2024
1 parent e177648 commit 64c735b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

// LegacyChunkMode was the original chunk mode (always chunk size 1024)
// this mode is still used for chunking doc values.
var LegacyChunkMode uint32 = 1024
var LegacyChunkMode uint32 = 1

// DefaultChunkMode is the most recent improvement to chunking and should
// be used by default.
Expand Down
9 changes: 6 additions & 3 deletions section_inverted_text_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"encoding/binary"
"math"
"sort"
"strings"
"sync/atomic"

"github.com/RoaringBitmap/roaring"
Expand Down Expand Up @@ -536,9 +537,11 @@ func (io *invertedIndexOpaque) writeDicts(w *CountHashWriter) (dictOffsets []uin
}

if postingsOffset > uint64(0) {
err = io.builder.Insert([]byte(term), postingsOffset)
if err != nil {
return nil, err
if !strings.HasPrefix(term, "##") {
err = io.builder.Insert([]byte(term), postingsOffset)
if err != nil {
return nil, err
}
}
}

Expand Down

0 comments on commit 64c735b

Please sign in to comment.