document bleve type

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-07-10 13:26:10 +02:00
parent b4f1a908a9
commit 523f704034

View File

@@ -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"`