aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/indexswitches/indexswitches.sd
blob: 36572c3592a8fdab8b177b0ec0b34a8ec895dd80 (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
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema indexswitches {

  document indexswitches {

    field title type string {
      indexing: summary | index
    }

    field descr type string {
      indexing: summary | index
    }

    field source_src type string {

    }
  }
  field source type string {
      indexing {
        input source_src |
        switch {
	    case "amg":    input source_src | summary;
	    case "theweb": input source_src | summary | index;
	    default:       input source_src . " partner" | summary | index;
        };
      }
      stemming: none
  }
  fieldset default {
    fields: title, descr
  }
}