From 523f704034348dac2dcf3083c7ec01afbf7ed883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 10 Jul 2020 13:26:10 +0200 Subject: [PATCH] document bleve type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- pkg/proto/v0/bleve.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/proto/v0/bleve.go b/pkg/proto/v0/bleve.go index c4074c36d6..66188d84ba 100644 --- a/pkg/proto/v0/bleve.go +++ b/pkg/proto/v0/bleve.go @@ -1,13 +1,12 @@ package proto -// Bleve uses a private bleveClassifier interface to determine the type of a struct -// see https://github.com/blevesearch/bleve/blob/master/mapping/mapping.go#L32-L38 - +// BleveAccount wraps the generated Account and adds a bleve type that is used to distinguish documents in the index type BleveAccount struct { Account BleveType string `json:"bleve_type"` } +// BleveGroup wraps the generated Group and adds a bleve type that is used to distinguish documents in the index type BleveGroup struct { Group BleveType string `json:"bleve_type"`