aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test/apps/zkfeed/schemas/sock.sd
blob: f62ddba9c0a9ae5723b34e64fc6f7878be3e8038 (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
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search sock {

  document sock inherits product {

    field size type int {
      indexing: index | summary | attribute
    }

    field color type string {
      indexing: summary
      index: prefix
    }

    field brand type string {
      indexing: summary
    }

  }

  rank-profile other {
    second-phase {
      expression: fieldMatch(color).fieldCompleteness + fieldMatch(brand).proximity
    }
  }

}