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/derived/inheritstruct |
Publish
Diffstat (limited to 'config-model/src/test/derived/inheritstruct')
3 files changed, 39 insertions, 0 deletions
diff --git a/config-model/src/test/derived/inheritstruct/child.sd b/config-model/src/test/derived/inheritstruct/child.sd new file mode 100644 index 00000000000..05f65edd2ca --- /dev/null +++ b/config-model/src/test/derived/inheritstruct/child.sd @@ -0,0 +1,10 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search child { + document child inherits parent { + field child_struct_field type my_struct { + indexing: summary | index + header + match: prefix + } + } +} diff --git a/config-model/src/test/derived/inheritstruct/index-info.cfg b/config-model/src/test/derived/inheritstruct/index-info.cfg new file mode 100644 index 00000000000..ba9f3eead26 --- /dev/null +++ b/config-model/src/test/derived/inheritstruct/index-info.cfg @@ -0,0 +1,21 @@ +indexinfo[0].name "child" +indexinfo[0].command[0].indexname "sddocname" +indexinfo[0].command[0].command "index" +indexinfo[0].command[1].indexname "sddocname" +indexinfo[0].command[1].command "word" +indexinfo[0].command[2].indexname "child_struct_field.my_str" +indexinfo[0].command[2].command "index" +indexinfo[0].command[3].indexname "child_struct_field.my_str" +indexinfo[0].command[3].command "lowercase" +indexinfo[0].command[4].indexname "child_struct_field.my_str" +indexinfo[0].command[4].command "stem:SHORTEST" +indexinfo[0].command[5].indexname "child_struct_field.my_str" +indexinfo[0].command[5].command "normalize" +indexinfo[0].command[6].indexname "child_struct_field" +indexinfo[0].command[6].command "index" +indexinfo[0].command[7].indexname "child_struct_field" +indexinfo[0].command[7].command "lowercase" +indexinfo[0].command[8].indexname "rankfeatures" +indexinfo[0].command[8].command "index" +indexinfo[0].command[9].indexname "summaryfeatures" +indexinfo[0].command[9].command "index"
\ No newline at end of file diff --git a/config-model/src/test/derived/inheritstruct/parent.sd b/config-model/src/test/derived/inheritstruct/parent.sd new file mode 100644 index 00000000000..311d039cdb0 --- /dev/null +++ b/config-model/src/test/derived/inheritstruct/parent.sd @@ -0,0 +1,8 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search parent { + document parent { + struct my_struct { + field my_str type string { } + } + } +} |