diff options
Diffstat (limited to 'config-model/src/test/derived')
4 files changed, 75 insertions, 0 deletions
diff --git a/config-model/src/test/derived/array_of_struct_attribute/attributes.cfg b/config-model/src/test/derived/array_of_struct_attribute/attributes.cfg new file mode 100644 index 00000000000..9e6b5cea55e --- /dev/null +++ b/config-model/src/test/derived/array_of_struct_attribute/attributes.cfg @@ -0,0 +1,40 @@ +attribute[].name "elem_array.name" +attribute[].datatype STRING +attribute[].collectiontype ARRAY +attribute[].removeifzero false +attribute[].createifnonexistent false +attribute[].fastsearch false +attribute[].huge false +attribute[].sortascending true +attribute[].sortfunction UCA +attribute[].sortstrength PRIMARY +attribute[].sortlocale "" +attribute[].enablebitvectors false +attribute[].enableonlybitvector false +attribute[].fastaccess false +attribute[].arity 8 +attribute[].lowerbound -9223372036854775808 +attribute[].upperbound 9223372036854775807 +attribute[].densepostinglistthreshold 0.4 +attribute[].tensortype "" +attribute[].imported false +attribute[].name "elem_array.weight" +attribute[].datatype INT32 +attribute[].collectiontype ARRAY +attribute[].removeifzero false +attribute[].createifnonexistent false +attribute[].fastsearch false +attribute[].huge false +attribute[].sortascending true +attribute[].sortfunction UCA +attribute[].sortstrength PRIMARY +attribute[].sortlocale "" +attribute[].enablebitvectors false +attribute[].enableonlybitvector false +attribute[].fastaccess false +attribute[].arity 8 +attribute[].lowerbound -9223372036854775808 +attribute[].upperbound 9223372036854775807 +attribute[].densepostinglistthreshold 0.4 +attribute[].tensortype "" +attribute[].imported false diff --git a/config-model/src/test/derived/array_of_struct_attribute/summary.cfg b/config-model/src/test/derived/array_of_struct_attribute/summary.cfg new file mode 100644 index 00000000000..c1679c57d1a --- /dev/null +++ b/config-model/src/test/derived/array_of_struct_attribute/summary.cfg @@ -0,0 +1,11 @@ +defaultsummaryid 252850086 +classes[].id 252850086 +classes[].name "default" +classes[].fields[].name "elem_array" +classes[].fields[].type "jsonstring" +classes[].fields[].name "rankfeatures" +classes[].fields[].type "featuredata" +classes[].fields[].name "summaryfeatures" +classes[].fields[].type "featuredata" +classes[].fields[].name "documentid" +classes[].fields[].type "longstring" diff --git a/config-model/src/test/derived/array_of_struct_attribute/summarymap.cfg b/config-model/src/test/derived/array_of_struct_attribute/summarymap.cfg new file mode 100644 index 00000000000..8956a146b74 --- /dev/null +++ b/config-model/src/test/derived/array_of_struct_attribute/summarymap.cfg @@ -0,0 +1,7 @@ +defaultoutputclass -1 +override[].field "rankfeatures" +override[].command "rankfeatures" +override[].arguments "" +override[].field "summaryfeatures" +override[].command "summaryfeatures" +override[].arguments "" diff --git a/config-model/src/test/derived/array_of_struct_attribute/test.sd b/config-model/src/test/derived/array_of_struct_attribute/test.sd new file mode 100644 index 00000000000..5b2d50cbdba --- /dev/null +++ b/config-model/src/test/derived/array_of_struct_attribute/test.sd @@ -0,0 +1,17 @@ +search test { + document test { + struct elem { + field name type string {} + field weight type int {} + } + field elem_array type array<elem> { + indexing: summary + struct-field name { + indexing: attribute + } + struct-field weight { + indexing: attribute + } + } + } +} |