-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.go
More file actions
29 lines (22 loc) · 810 Bytes
/
config.go
File metadata and controls
29 lines (22 loc) · 810 Bytes
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
package discovery
// RecordFilter is a filter intended to be used as a search
// criteria for operations involving record search
type RecordFilter = map[string][]string
// SearchConfig represents a search query along
// with any corresponding filter(s)
type SearchConfig struct {
// Text to search for
Text string
// Filters specifies document level values to look for.
// Multiple values can be specified for a single key
Filters RecordFilter
// Number of relevant results to return
MaxResults int
// List of record types to search for
// a zero value signifies that all types should be searched
TypeWhiteList []string
// RankBy is a param to rank based on a specific parameter
RankBy string
// Queries is a param to search a resource based on record's fields
Queries map[string]string
}