Skip to content

Commit

Permalink
MB-57888: WIP: Index Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Likith101 committed Nov 26, 2024
1 parent 01e7988 commit f45cf49
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 FieldInfo struct {
All bool
Store bool
Index bool
DocValues bool
}

type UpdateIndex interface {
Index
UpdateFields(fieldInfo map[string]*FieldInfo, 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 f45cf49

Please sign in to comment.