From f45cf49e9bc6ec77fd7a4deec5a314fa98c1e9a5 Mon Sep 17 00:00:00 2001 From: Likith B Date: Tue, 26 Nov 2024 10:31:10 +0530 Subject: [PATCH] MB-57888: WIP: Index Update --- index.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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)