summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/map_attribute
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/test/derived/map_attribute')
-rw-r--r--config-model/src/test/derived/map_attribute/attributes.cfg60
-rw-r--r--config-model/src/test/derived/map_attribute/summary.cfg13
-rw-r--r--config-model/src/test/derived/map_attribute/summarymap.cfg10
-rw-r--r--config-model/src/test/derived/map_attribute/test.sd19
4 files changed, 102 insertions, 0 deletions
diff --git a/config-model/src/test/derived/map_attribute/attributes.cfg b/config-model/src/test/derived/map_attribute/attributes.cfg
new file mode 100644
index 00000000000..cdd929a1818
--- /dev/null
+++ b/config-model/src/test/derived/map_attribute/attributes.cfg
@@ -0,0 +1,60 @@
+attribute[].name "str_map.key"
+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 "str_map.value"
+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 "int_map.key"
+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/map_attribute/summary.cfg b/config-model/src/test/derived/map_attribute/summary.cfg
new file mode 100644
index 00000000000..24d6cab7697
--- /dev/null
+++ b/config-model/src/test/derived/map_attribute/summary.cfg
@@ -0,0 +1,13 @@
+defaultsummaryid 1376056200
+classes[].id 1376056200
+classes[].name "default"
+classes[].fields[].name "str_map"
+classes[].fields[].type "jsonstring"
+classes[].fields[].name "int_map"
+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/map_attribute/summarymap.cfg b/config-model/src/test/derived/map_attribute/summarymap.cfg
new file mode 100644
index 00000000000..8936b26ca64
--- /dev/null
+++ b/config-model/src/test/derived/map_attribute/summarymap.cfg
@@ -0,0 +1,10 @@
+defaultoutputclass -1
+override[].field "str_map"
+override[].command "attributecombiner"
+override[].arguments ""
+override[].field "rankfeatures"
+override[].command "rankfeatures"
+override[].arguments ""
+override[].field "summaryfeatures"
+override[].command "summaryfeatures"
+override[].arguments ""
diff --git a/config-model/src/test/derived/map_attribute/test.sd b/config-model/src/test/derived/map_attribute/test.sd
new file mode 100644
index 00000000000..da31f575396
--- /dev/null
+++ b/config-model/src/test/derived/map_attribute/test.sd
@@ -0,0 +1,19 @@
+search test {
+ document test {
+ field str_map type map<string, string> {
+ indexing: summary
+ struct-field key {
+ indexing: attribute
+ }
+ struct-field value {
+ indexing: attribute
+ }
+ }
+ field int_map type map<int, int> {
+ indexing: summary
+ struct-field key {
+ indexing: attribute
+ }
+ }
+ }
+}