Skip to content

Commit

Permalink
MB-57888: Index Update (#58)
Browse files Browse the repository at this point in the history
- Added fieldInfo which stores what bits of each zapx field is supposed
to be deleted
- Extending the index interface to include an api that updates the bolt
db metadata
  • Loading branch information
Likith101 authored Feb 7, 2025
1 parent f54d76f commit 9af4b44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ type EventIndex interface {
FireIndexEvent()
}

type UpdateFieldInfo struct {
Deleted bool
Store bool
Index bool
DocValues bool
}

type UpdateIndex interface {
Index
UpdateFields(fieldInfo map[string]*UpdateFieldInfo, updatedMapping []byte) error
}

type IndexReader interface {
TermFieldReader(ctx context.Context, term []byte, field string, includeFreq, includeNorm, includeTermVectors bool) (TermFieldReader, error)

Expand Down

0 comments on commit 9af4b44

Please sign in to comment.