aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/test/java/com/yahoo/document/datatypes/blog.sd
blob: 545c46cb1496e9d273886f546b636554c0ba40a0 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search blog {

  document blog {

    field title type string {
	    header
        indexing: summary | index
	    # index-to: default
    }

    field author type string {
	    header
	    indexing: summary | index
	    # index-to: default
    }

    field body type string {
        header
	    indexing: summary | index
    }

    field url type uri {
        header
	    indexing: index | summary
	    # index-to: default
    }
  }

  annotation industry {
    field vertical type string {}
  }

  annotation company inherits industry {
    field name type string {}
	field ceo type string {}	
	field lat type long {}
	field lon type long {}
  }

  annotation person {
	field name type string {}
  }

  annotation location {
  	field name type string {}
  }
}