-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
35 lines (26 loc) · 848 Bytes
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package es
import (
"github.com/Bnei-Baruch/archive-backend/utils"
)
type EffectiveDate struct {
EffectiveDate *utils.Date `json:"effective_date"`
}
type ResultType struct {
ResultType string `json:"result_type"`
}
// For full description see make.py RESULTS TEMPLATE.
type Result struct {
// Document type.
ResultType string `json:"result_type"`
IndexDate *utils.Date `json:"index_date,omitempty"`
MDB_UID string `json:"mdb_uid"`
TypedUids []string `json:"typed_uids"`
FilterValues []string `json:"filter_values"`
// Result content fields.
Title string `json:"title"`
Description string `json:"description,omitempty"`
Content string `json:"content,omitempty"`
EffectiveDate *utils.Date `json:"effective_date,omitempty"`
// Suggest field for autocomplete.
TitleSuggest []string `json:"title_suggest"`
}