blob: 00bd80bc42a59123248adc34bf1d05fc604a8e09 (
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 2017 Yahoo Holdings. 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 {}
}
}
|