diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2018-11-29 16:35:06 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2018-11-30 12:06:01 +0100 |
commit | ca699faa10770c397a82923c29cd7247d3dfde60 (patch) | |
tree | 63d2e7a5d8d809018bb725e5d2acc8ecb92fc6b3 /config-model/src/test/derived/imported_position_field | |
parent | 1b2ccec2d8f5ad05a7a718b62f256b4fd19bda74 (diff) |
Derive config for imported position field.
Diffstat (limited to 'config-model/src/test/derived/imported_position_field')
8 files changed, 123 insertions, 0 deletions
diff --git a/config-model/src/test/derived/imported_position_field/attributes.cfg b/config-model/src/test/derived/imported_position_field/attributes.cfg new file mode 100644 index 00000000000..db2280a7846 --- /dev/null +++ b/config-model/src/test/derived/imported_position_field/attributes.cfg @@ -0,0 +1,42 @@ +attribute[0].name "parent_ref" +attribute[0].datatype REFERENCE +attribute[0].collectiontype SINGLE +attribute[0].removeifzero false +attribute[0].createifnonexistent false +attribute[0].fastsearch false +attribute[0].huge false +attribute[0].ismutable false +attribute[0].sortascending true +attribute[0].sortfunction UCA +attribute[0].sortstrength PRIMARY +attribute[0].sortlocale "" +attribute[0].enablebitvectors false +attribute[0].enableonlybitvector false +attribute[0].fastaccess false +attribute[0].arity 8 +attribute[0].lowerbound -9223372036854775808 +attribute[0].upperbound 9223372036854775807 +attribute[0].densepostinglistthreshold 0.4 +attribute[0].tensortype "" +attribute[0].imported false +attribute[1].name "my_pos_zcurve" +attribute[1].datatype INT64 +attribute[1].collectiontype SINGLE +attribute[1].removeifzero false +attribute[1].createifnonexistent false +attribute[1].fastsearch true +attribute[1].huge false +attribute[1].ismutable false +attribute[1].sortascending true +attribute[1].sortfunction UCA +attribute[1].sortstrength PRIMARY +attribute[1].sortlocale "" +attribute[1].enablebitvectors false +attribute[1].enableonlybitvector false +attribute[1].fastaccess false +attribute[1].arity 8 +attribute[1].lowerbound -9223372036854775808 +attribute[1].upperbound 9223372036854775807 +attribute[1].densepostinglistthreshold 0.4 +attribute[1].tensortype "" +attribute[1].imported true
\ No newline at end of file diff --git a/config-model/src/test/derived/imported_position_field/child.sd b/config-model/src/test/derived/imported_position_field/child.sd new file mode 100644 index 00000000000..29997b855bd --- /dev/null +++ b/config-model/src/test/derived/imported_position_field/child.sd @@ -0,0 +1,9 @@ +# 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 {} +} diff --git a/config-model/src/test/derived/imported_position_field/imported-fields.cfg b/config-model/src/test/derived/imported_position_field/imported-fields.cfg new file mode 100644 index 00000000000..51b371827c5 --- /dev/null +++ b/config-model/src/test/derived/imported_position_field/imported-fields.cfg @@ -0,0 +1,5 @@ +attribute[0].name "my_pos_zcurve" +attribute[0].referencefield "parent_ref" +attribute[0].targetfield "pos_zcurve" +attribute[0].datatype NONE +attribute[0].collectiontype SINGLE
\ No newline at end of file diff --git a/config-model/src/test/derived/imported_position_field/index-info.cfg b/config-model/src/test/derived/imported_position_field/index-info.cfg new file mode 100644 index 00000000000..d8fffbdfb2d --- /dev/null +++ b/config-model/src/test/derived/imported_position_field/index-info.cfg @@ -0,0 +1,27 @@ +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 "parent_ref" +indexinfo[0].command[2].command "index" +indexinfo[0].command[3].indexname "parent_ref" +indexinfo[0].command[3].command "attribute" +indexinfo[0].command[4].indexname "parent_ref" +indexinfo[0].command[4].command "word" +indexinfo[0].command[5].indexname "rankfeatures" +indexinfo[0].command[5].command "index" +indexinfo[0].command[6].indexname "summaryfeatures" +indexinfo[0].command[6].command "index" +indexinfo[0].command[7].indexname "my_pos_zcurve" +indexinfo[0].command[7].command "index" +indexinfo[0].command[8].indexname "my_pos_zcurve" +indexinfo[0].command[8].command "attribute" +indexinfo[0].command[9].indexname "my_pos_zcurve" +indexinfo[0].command[9].command "fast-search" +indexinfo[0].command[10].indexname "my_pos_zcurve" +indexinfo[0].command[10].command "numerical" +indexinfo[0].command[11].indexname "my_pos" +indexinfo[0].command[11].command "default-position" +indexinfo[0].command[12].indexname "my_pos" +indexinfo[0].command[12].command "index"
\ No newline at end of file diff --git a/config-model/src/test/derived/imported_position_field/parent.sd b/config-model/src/test/derived/imported_position_field/parent.sd new file mode 100644 index 00000000000..493e105e5fd --- /dev/null +++ b/config-model/src/test/derived/imported_position_field/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.cfg b/config-model/src/test/derived/imported_position_field/summary.cfg new file mode 100644 index 00000000000..8da2598a5fc --- /dev/null +++ b/config-model/src/test/derived/imported_position_field/summary.cfg @@ -0,0 +1,17 @@ +defaultsummaryid 1570252291 +classes[0].id 1570252291 +classes[0].name "default" +classes[0].fields[0].name "parent_ref" +classes[0].fields[0].type "longstring" +classes[0].fields[1].name "rankfeatures" +classes[0].fields[1].type "featuredata" +classes[0].fields[2].name "summaryfeatures" +classes[0].fields[2].type "featuredata" +classes[0].fields[3].name "documentid" +classes[0].fields[3].type "longstring" +classes[1].id 1274088866 +classes[1].name "attributeprefetch" +classes[1].fields[0].name "rankfeatures" +classes[1].fields[0].type "featuredata" +classes[1].fields[1].name "summaryfeatures" +classes[1].fields[1].type "featuredata"
\ No newline at end of file diff --git a/config-model/src/test/derived/imported_position_field/summarymap.cfg b/config-model/src/test/derived/imported_position_field/summarymap.cfg new file mode 100644 index 00000000000..42b6e811ee6 --- /dev/null +++ b/config-model/src/test/derived/imported_position_field/summarymap.cfg @@ -0,0 +1,7 @@ +defaultoutputclass -1 +override[0].field "rankfeatures" +override[0].command "rankfeatures" +override[0].arguments "" +override[1].field "summaryfeatures" +override[1].command "summaryfeatures" +override[1].arguments ""
\ No newline at end of file diff --git a/config-model/src/test/derived/imported_position_field/vsmsummary.cfg b/config-model/src/test/derived/imported_position_field/vsmsummary.cfg new file mode 100644 index 00000000000..4a09e153dde --- /dev/null +++ b/config-model/src/test/derived/imported_position_field/vsmsummary.cfg @@ -0,0 +1,8 @@ +outputclass "" +fieldmap[0].summary "parent_ref" +fieldmap[0].document[0].field "parent_ref" +fieldmap[0].command NONE +fieldmap[1].summary "rankfeatures" +fieldmap[1].command NONE +fieldmap[2].summary "summaryfeatures" +fieldmap[2].command NONE
\ No newline at end of file |