From d72825e9ee4cdd398d57a75cd8fd34ddab53db7f Mon Sep 17 00:00:00 2001 From: Likith B Date: Tue, 26 Nov 2024 10:31:10 +0530 Subject: [PATCH 1/2] MB-57888: WIP: Index Update --- index.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.go b/index.go index f792da5..285eff8 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) From 19ce982b2a3920f4c4f368a9c3694ab1c0aaddc2 Mon Sep 17 00:00:00 2001 From: Likith B Date: Fri, 7 Feb 2025 15:22:27 +0530 Subject: [PATCH 2/2] MB-57888: Naming changes --- index.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.go b/index.go index 285eff8..53ba46e 100644 --- a/index.go +++ b/index.go @@ -65,8 +65,8 @@ type EventIndex interface { FireIndexEvent() } -type FieldInfo struct { - All bool +type UpdateFieldInfo struct { + Deleted bool Store bool Index bool DocValues bool @@ -74,7 +74,7 @@ type FieldInfo struct { type UpdateIndex interface { Index - UpdateFields(fieldInfo map[string]*FieldInfo, updatedMapping []byte) error + UpdateFields(fieldInfo map[string]*UpdateFieldInfo, updatedMapping []byte) error } type IndexReader interface {