diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /config-model/src/test/examples/casing.sd |
Publish
Diffstat (limited to 'config-model/src/test/examples/casing.sd')
-rw-r--r-- | config-model/src/test/examples/casing.sd | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/config-model/src/test/examples/casing.sd b/config-model/src/test/examples/casing.sd new file mode 100644 index 00000000000..70f60562f97 --- /dev/null +++ b/config-model/src/test/examples/casing.sd @@ -0,0 +1,64 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search music { + document music { + + field Color type string { + indexing: index + # index-to: color + alias color: Colour + match { + exact + } + } + + field artist type string { + indexing: attribute + } + + field Drummer type string { + indexing: attribute + } + + field guitarist type string { + indexing: attribute + match { + token + } + } + + field title type string { + indexing: index | attribute + } + + field Genre type string { + indexing: index + # index-to: Foo + alias Foo: sjanger + } + + field Price type string { + indexing: index + alias: Cost + } + + field Trumpetist type string { + indexing: attribute | index + } + + field Saxophonist type string { + indexing: summary | attribute Saxophonist + } + + field TenorSaxophonist type array<string> { + indexing: summary | attribute + } + + field Flutist type string { + indexing: attribute | index Flutist + match { + token + } + } + + } +} |