summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/documentderiver/newsarticle.sd
blob: d31c309726e150582f85fdd3dcb94339a4ccc500 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search newsarticle {

  document newsarticle inherits newssummary {

    field dynabstract type string {
      indexing: summary
    }

    field body type string {
      body
      indexing: summary | index
      # index-to: body, default
      stemming: none
    }

    field othersourcenames type string {
      indexing: summary | index
      # index-to: othersourcenames, source
      stemming: none
    }

    field author type string {
      indexing: summary | index
      stemming: none
    }

    field otherlanguages type string {
      indexing: summary | index
      # index-to: languages
      stemming: none
    }

    field charset type string {
      indexing: summary
      stemming: none
    }

    field mimetype type string {
      indexing: summary
      stemming: none
    }

    field referrerurl type uri {
      indexing: summary | lowercase | tokenize | index
      stemming: none
    }

    field sourcelocation type string {
      indexing: summary | index
      stemming: none
      alias: location
    }

    field sourcecountry type string {
      indexing: summary | index
      stemming: none
      # index-to: sourcecountry, sourcelocation
    }

    field sourcelocale type string {
      indexing: summary | index
      stemming: none
      # index-to: sourcelocale, sourcelocation
    }

    field sourcecontinent type string {
      indexing: summary | index
      stemming: none
      # index-to: sourcecontinent, sourcelocation
    }

    field articlecountry type string {
     indexing: summary | index
      stemming: none
    }

    field articlelocale type string {
      indexing: summary | index
      stemming: none
    }

    field articlecontinent type string {
      indexing: summary | index
      stemming: none
    }

    field sourcerank type int {
      indexing: summary | index | set_var tmpsourcerank
    }

    field crawldate type long {
      indexing: summary | index
    }

    field indexdate type long {
      indexing: now | summary | index
    }

    field procdate type long {
      indexing: summary | index
    }

    field sourceid type int {
      indexing: summary | index
    }

    field sourcefeedid type int {
      indexing: summary | index
    }

  }

  rank-profile date {
  }

  rank-profile usrank inherits default {
  }

  rank-profile eurank inherits default {
  }

  rank-profile asiarank inherits default {
  }

}