diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-12-04 12:49:27 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2018-12-05 16:51:21 +0100 |
commit | 00ad57b13f501d22d4ebbfa5281cfc7a0677833c (patch) | |
tree | 701cb378af34f89e6a414c2198058eb2f18e2996 /config-model/src/test/derived/imported_position_field_summary | |
parent | 200663867930d081a49644c42f6090a926a327c3 (diff) |
Process position summary entries.
Diffstat (limited to 'config-model/src/test/derived/imported_position_field_summary')
5 files changed, 115 insertions, 0 deletions
diff --git a/config-model/src/test/derived/imported_position_field_summary/child.sd b/config-model/src/test/derived/imported_position_field_summary/child.sd new file mode 100644 index 00000000000..aaa31a3273d --- /dev/null +++ b/config-model/src/test/derived/imported_position_field_summary/child.sd @@ -0,0 +1,13 @@ +# Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search child { + document child { + field parent_ref type reference<parent> { + indexing: attribute | summary + } + } + import field parent_ref.pos as my_pos {} + + document-summary mysummary { + summary my_pos type position { } + } +} diff --git a/config-model/src/test/derived/imported_position_field_summary/index-info.cfg b/config-model/src/test/derived/imported_position_field_summary/index-info.cfg new file mode 100644 index 00000000000..c87553d6537 --- /dev/null +++ b/config-model/src/test/derived/imported_position_field_summary/index-info.cfg @@ -0,0 +1,43 @@ +indexinfo[].name "child" +indexinfo[].command[].indexname "sddocname" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "sddocname" +indexinfo[].command[].command "word" +indexinfo[].command[].indexname "parent_ref" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "parent_ref" +indexinfo[].command[].command "attribute" +indexinfo[].command[].indexname "parent_ref" +indexinfo[].command[].command "word" +indexinfo[].command[].indexname "my_pos.x" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "my_pos.x" +indexinfo[].command[].command "numerical" +indexinfo[].command[].indexname "my_pos.y" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "my_pos.y" +indexinfo[].command[].command "numerical" +indexinfo[].command[].indexname "my_pos" +indexinfo[].command[].command "default-position" +indexinfo[].command[].indexname "my_pos" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "my_pos.distance" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "my_pos.distance" +indexinfo[].command[].command "numerical" +indexinfo[].command[].indexname "my_pos.position" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "my_pos.position" +indexinfo[].command[].command "multivalue" +indexinfo[].command[].indexname "rankfeatures" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "summaryfeatures" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "my_pos_zcurve" +indexinfo[].command[].command "index" +indexinfo[].command[].indexname "my_pos_zcurve" +indexinfo[].command[].command "attribute" +indexinfo[].command[].indexname "my_pos_zcurve" +indexinfo[].command[].command "fast-search" +indexinfo[].command[].indexname "my_pos_zcurve" +indexinfo[].command[].command "numerical" diff --git a/config-model/src/test/derived/imported_position_field_summary/parent.sd b/config-model/src/test/derived/imported_position_field_summary/parent.sd new file mode 100644 index 00000000000..493e105e5fd --- /dev/null +++ b/config-model/src/test/derived/imported_position_field_summary/parent.sd @@ -0,0 +1,8 @@ +# Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search parent { + document parent { + field pos type position { + indexing: attribute | summary + } + } +} diff --git a/config-model/src/test/derived/imported_position_field_summary/summary.cfg b/config-model/src/test/derived/imported_position_field_summary/summary.cfg new file mode 100644 index 00000000000..b607786ca36 --- /dev/null +++ b/config-model/src/test/derived/imported_position_field_summary/summary.cfg @@ -0,0 +1,35 @@ +defaultsummaryid 1194448774 +classes[].id 1194448774 +classes[].name "default" +classes[].fields[].name "parent_ref" +classes[].fields[].type "longstring" +classes[].fields[].name "rankfeatures" +classes[].fields[].type "featuredata" +classes[].fields[].name "summaryfeatures" +classes[].fields[].type "featuredata" +classes[].fields[].name "my_pos" +classes[].fields[].type "jsonstring" +classes[].fields[].name "my_pos.position" +classes[].fields[].type "xmlstring" +classes[].fields[].name "my_pos.distance" +classes[].fields[].type "integer" +classes[].fields[].name "documentid" +classes[].fields[].type "longstring" +classes[].id 890647799 +classes[].name "mysummary" +classes[].fields[].name "my_pos" +classes[].fields[].type "jsonstring" +classes[].fields[].name "rankfeatures" +classes[].fields[].type "featuredata" +classes[].fields[].name "summaryfeatures" +classes[].fields[].type "featuredata" +classes[].fields[].name "my_pos.position" +classes[].fields[].type "xmlstring" +classes[].fields[].name "my_pos.distance" +classes[].fields[].type "integer" +classes[].id 1274088866 +classes[].name "attributeprefetch" +classes[].fields[].name "rankfeatures" +classes[].fields[].type "featuredata" +classes[].fields[].name "summaryfeatures" +classes[].fields[].type "featuredata" diff --git a/config-model/src/test/derived/imported_position_field_summary/summarymap.cfg b/config-model/src/test/derived/imported_position_field_summary/summarymap.cfg new file mode 100644 index 00000000000..e2c0b546a59 --- /dev/null +++ b/config-model/src/test/derived/imported_position_field_summary/summarymap.cfg @@ -0,0 +1,16 @@ +defaultoutputclass -1 +override[].field "my_pos" +override[].command "geopos" +override[].arguments "my_pos_zcurve" +override[].field "rankfeatures" +override[].command "rankfeatures" +override[].arguments "" +override[].field "summaryfeatures" +override[].command "summaryfeatures" +override[].arguments "" +override[].field "my_pos.position" +override[].command "positions" +override[].arguments "my_pos_zcurve" +override[].field "my_pos.distance" +override[].command "absdist" +override[].arguments "my_pos_zcurve" |