blob: c4f9e90c06cfe243cfc2c18652b5efaf517c102f (
plain) (
blame)
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
36
|
# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search webdoc {
document webdoc {
#
# a simple key-value pair
#
struct keyvalue {
field key type string {}
field value type string {}
}
#
# tags have a name and an array of attributes
#
struct tagvalue {
field name type string {}
# todo: this should be a map of attributes, not an array
field attributes type array<keyvalue> {}
}
#
# wordforms are (kind, form, weight) triplets
# todo: "kind" should be an enum; check how enums are used.
#
struct wordform {
field kind type int {}
field form type string {}
field weight type float {}
}
#
# web documents have zero or more HTML source strings
#
field html type string {}
}
}
|