From 00ad57b13f501d22d4ebbfa5281cfc7a0677833c Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Tue, 4 Dec 2018 12:49:27 +0000 Subject: Process position summary entries. --- .../imported_position_field_summary/child.sd | 13 +++++++ .../imported_position_field_summary/index-info.cfg | 43 ++++++++++++++++++++++ .../imported_position_field_summary/parent.sd | 8 ++++ .../imported_position_field_summary/summary.cfg | 35 ++++++++++++++++++ .../imported_position_field_summary/summarymap.cfg | 16 ++++++++ 5 files changed, 115 insertions(+) create mode 100644 config-model/src/test/derived/imported_position_field_summary/child.sd create mode 100644 config-model/src/test/derived/imported_position_field_summary/index-info.cfg create mode 100644 config-model/src/test/derived/imported_position_field_summary/parent.sd create mode 100644 config-model/src/test/derived/imported_position_field_summary/summary.cfg create mode 100644 config-model/src/test/derived/imported_position_field_summary/summarymap.cfg (limited to 'config-model/src/test/derived') 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 { + 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" -- cgit v1.2.3