aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/position_summary
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
commit72231250ed81e10d66bfe70701e64fa5fe50f712 (patch)
tree2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /config-model/src/test/derived/position_summary
Publish
Diffstat (limited to 'config-model/src/test/derived/position_summary')
-rw-r--r--config-model/src/test/derived/position_summary/position_summary.sd8
-rw-r--r--config-model/src/test/derived/position_summary/summary.cfg23
-rw-r--r--config-model/src/test/derived/position_summary/summarymap.cfg19
-rw-r--r--config-model/src/test/derived/position_summary/vsmsummary.cfg14
4 files changed, 64 insertions, 0 deletions
diff --git a/config-model/src/test/derived/position_summary/position_summary.sd b/config-model/src/test/derived/position_summary/position_summary.sd
new file mode 100644
index 00000000000..ccc136f635a
--- /dev/null
+++ b/config-model/src/test/derived/position_summary/position_summary.sd
@@ -0,0 +1,8 @@
+# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search position_summary {
+ document position_summary {
+ field pos type position {
+ indexing: attribute | summary
+ }
+ }
+}
diff --git a/config-model/src/test/derived/position_summary/summary.cfg b/config-model/src/test/derived/position_summary/summary.cfg
new file mode 100644
index 00000000000..708fbe9ca18
--- /dev/null
+++ b/config-model/src/test/derived/position_summary/summary.cfg
@@ -0,0 +1,23 @@
+defaultsummaryid 230670304
+classes[0].id 230670304
+classes[0].name "default"
+classes[0].fields[0].name "pos"
+classes[0].fields[0].type "jsonstring"
+classes[0].fields[1].name "pos.position"
+classes[0].fields[1].type "xmlstring"
+classes[0].fields[2].name "pos.distance"
+classes[0].fields[2].type "integer"
+classes[0].fields[3].name "rankfeatures"
+classes[0].fields[3].type "featuredata"
+classes[0].fields[4].name "summaryfeatures"
+classes[0].fields[4].type "featuredata"
+classes[0].fields[5].name "documentid"
+classes[0].fields[5].type "longstring"
+classes[1].id 1530141163
+classes[1].name "attributeprefetch"
+classes[1].fields[0].name "pos_zcurve"
+classes[1].fields[0].type "int64"
+classes[1].fields[1].name "rankfeatures"
+classes[1].fields[1].type "featuredata"
+classes[1].fields[2].name "summaryfeatures"
+classes[1].fields[2].type "featuredata" \ No newline at end of file
diff --git a/config-model/src/test/derived/position_summary/summarymap.cfg b/config-model/src/test/derived/position_summary/summarymap.cfg
new file mode 100644
index 00000000000..caf88368044
--- /dev/null
+++ b/config-model/src/test/derived/position_summary/summarymap.cfg
@@ -0,0 +1,19 @@
+defaultoutputclass -1
+override[0].field "pos"
+override[0].command "geopos"
+override[0].arguments "pos_zcurve"
+override[1].field "pos.position"
+override[1].command "positions"
+override[1].arguments "pos_zcurve"
+override[2].field "pos.distance"
+override[2].command "absdist"
+override[2].arguments "pos_zcurve"
+override[3].field "rankfeatures"
+override[3].command "rankfeatures"
+override[3].arguments ""
+override[4].field "summaryfeatures"
+override[4].command "summaryfeatures"
+override[4].arguments ""
+override[5].field "pos_zcurve"
+override[5].command "attribute"
+override[5].arguments "pos_zcurve" \ No newline at end of file
diff --git a/config-model/src/test/derived/position_summary/vsmsummary.cfg b/config-model/src/test/derived/position_summary/vsmsummary.cfg
new file mode 100644
index 00000000000..770a228ed52
--- /dev/null
+++ b/config-model/src/test/derived/position_summary/vsmsummary.cfg
@@ -0,0 +1,14 @@
+outputclass ""
+fieldmap[0].summary "pos"
+fieldmap[0].document[0].field "pos"
+fieldmap[0].command NONE
+fieldmap[1].summary "pos.position"
+fieldmap[1].document[0].field "pos_zcurve"
+fieldmap[1].command NONE
+fieldmap[2].summary "pos.distance"
+fieldmap[2].document[0].field "pos_zcurve"
+fieldmap[2].command NONE
+fieldmap[3].summary "rankfeatures"
+fieldmap[3].command NONE
+fieldmap[4].summary "summaryfeatures"
+fieldmap[4].command NONE \ No newline at end of file