diff --git a/index.go b/index.go index 85a50e7..9327f89 100644 --- a/index.go +++ b/index.go @@ -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)