aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/prefixexactattribute
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/prefixexactattribute
Publish
Diffstat (limited to 'config-model/src/test/derived/prefixexactattribute')
-rw-r--r--config-model/src/test/derived/prefixexactattribute/attributes.cfg38
-rw-r--r--config-model/src/test/derived/prefixexactattribute/documentmanager.cfg52
-rw-r--r--config-model/src/test/derived/prefixexactattribute/ilscripts.cfg12
-rw-r--r--config-model/src/test/derived/prefixexactattribute/index-info.cfg41
-rw-r--r--config-model/src/test/derived/prefixexactattribute/prefixexactattribute.sd52
-rw-r--r--config-model/src/test/derived/prefixexactattribute/vsmfields.cfg38
6 files changed, 233 insertions, 0 deletions
diff --git a/config-model/src/test/derived/prefixexactattribute/attributes.cfg b/config-model/src/test/derived/prefixexactattribute/attributes.cfg
new file mode 100644
index 00000000000..257ebcdebab
--- /dev/null
+++ b/config-model/src/test/derived/prefixexactattribute/attributes.cfg
@@ -0,0 +1,38 @@
+attribute[0].name "attributefield1"
+attribute[0].datatype STRING
+attribute[0].collectiontype SINGLE
+attribute[0].removeifzero false
+attribute[0].createifnonexistent false
+attribute[0].fastsearch false
+attribute[0].huge 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[1].name "attributefield2"
+attribute[1].datatype STRING
+attribute[1].collectiontype SINGLE
+attribute[1].removeifzero false
+attribute[1].createifnonexistent false
+attribute[1].fastsearch false
+attribute[1].huge 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 "" \ No newline at end of file
diff --git a/config-model/src/test/derived/prefixexactattribute/documentmanager.cfg b/config-model/src/test/derived/prefixexactattribute/documentmanager.cfg
new file mode 100644
index 00000000000..1b51178e6d8
--- /dev/null
+++ b/config-model/src/test/derived/prefixexactattribute/documentmanager.cfg
@@ -0,0 +1,52 @@
+enablecompression false
+datatype[0].id 1381038251
+datatype[0].structtype[0].name "position"
+datatype[0].structtype[0].version 0
+datatype[0].structtype[0].compresstype NONE
+datatype[0].structtype[0].compresslevel 0
+datatype[0].structtype[0].compressthreshold 95
+datatype[0].structtype[0].compressminsize 800
+datatype[0].structtype[0].field[0].name "x"
+datatype[0].structtype[0].field[0].datatype 0
+datatype[0].structtype[0].field[1].name "y"
+datatype[0].structtype[0].field[1].datatype 0
+datatype[1].id -739138930
+datatype[1].structtype[0].name "prefixexactattribute.header"
+datatype[1].structtype[0].version 0
+datatype[1].structtype[0].compresstype NONE
+datatype[1].structtype[0].compresslevel 0
+datatype[1].structtype[0].compressthreshold 95
+datatype[1].structtype[0].compressminsize 800
+datatype[1].structtype[0].field[0].name "indexfield0"
+datatype[1].structtype[0].field[0].datatype 2
+datatype[1].structtype[0].field[1].name "attributefield1"
+datatype[1].structtype[0].field[1].datatype 2
+datatype[1].structtype[0].field[2].name "attributefield2"
+datatype[1].structtype[0].field[2].datatype 2
+datatype[1].structtype[0].field[3].name "indexfield1"
+datatype[1].structtype[0].field[3].datatype 2
+datatype[1].structtype[0].field[4].name "indexfield2"
+datatype[1].structtype[0].field[4].datatype 2
+datatype[1].structtype[0].field[5].name "rankfeatures"
+datatype[1].structtype[0].field[5].datatype 2
+datatype[1].structtype[0].field[6].name "summaryfeatures"
+datatype[1].structtype[0].field[6].datatype 2
+datatype[2].id -480519133
+datatype[2].structtype[0].name "prefixexactattribute.body"
+datatype[2].structtype[0].version 0
+datatype[2].structtype[0].compresstype NONE
+datatype[2].structtype[0].compresslevel 0
+datatype[2].structtype[0].compressthreshold 95
+datatype[2].structtype[0].compressminsize 800
+datatype[3].id -1812793455
+datatype[3].documenttype[0].name "prefixexactattribute"
+datatype[3].documenttype[0].version 0
+datatype[3].documenttype[0].inherits[0].name "document"
+datatype[3].documenttype[0].inherits[0].version 0
+datatype[3].documenttype[0].headerstruct -739138930
+datatype[3].documenttype[0].bodystruct -480519133
+datatype[3].documenttype[0].fieldsets{[document]}.fields[0] "attributefield1"
+datatype[3].documenttype[0].fieldsets{[document]}.fields[1] "attributefield2"
+datatype[3].documenttype[0].fieldsets{[document]}.fields[2] "indexfield0"
+datatype[3].documenttype[0].fieldsets{[document]}.fields[3] "indexfield1"
+datatype[3].documenttype[0].fieldsets{[document]}.fields[4] "indexfield2"
diff --git a/config-model/src/test/derived/prefixexactattribute/ilscripts.cfg b/config-model/src/test/derived/prefixexactattribute/ilscripts.cfg
new file mode 100644
index 00000000000..76c9bf9abf5
--- /dev/null
+++ b/config-model/src/test/derived/prefixexactattribute/ilscripts.cfg
@@ -0,0 +1,12 @@
+maxtermoccurrences 100
+ilscript[0].doctype "prefixexactattribute"
+ilscript[0].docfield[0] "indexfield0"
+ilscript[0].docfield[1] "attributefield1"
+ilscript[0].docfield[2] "attributefield2"
+ilscript[0].docfield[3] "indexfield1"
+ilscript[0].docfield[4] "indexfield2"
+ilscript[0].content[0] "clear_state | guard { input indexfield0 | tokenize normalize stem:\"SHORTEST\" | index indexfield0; }"
+ilscript[0].content[1] "clear_state | guard { input attributefield1 | attribute attributefield1; }"
+ilscript[0].content[2] "clear_state | guard { input attributefield2 | attribute attributefield2; }"
+ilscript[0].content[3] "clear_state | guard { input indexfield1 | exact | index indexfield1; }"
+ilscript[0].content[4] "clear_state | guard { input indexfield2 | exact | index indexfield2; }" \ No newline at end of file
diff --git a/config-model/src/test/derived/prefixexactattribute/index-info.cfg b/config-model/src/test/derived/prefixexactattribute/index-info.cfg
new file mode 100644
index 00000000000..74bf641990c
--- /dev/null
+++ b/config-model/src/test/derived/prefixexactattribute/index-info.cfg
@@ -0,0 +1,41 @@
+indexinfo[0].name "prefixexactattribute"
+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 "indexfield0"
+indexinfo[0].command[2].command "index"
+indexinfo[0].command[3].indexname "indexfield0"
+indexinfo[0].command[3].command "lowercase"
+indexinfo[0].command[4].indexname "indexfield0"
+indexinfo[0].command[4].command "stem:SHORTEST"
+indexinfo[0].command[5].indexname "indexfield0"
+indexinfo[0].command[5].command "normalize"
+indexinfo[0].command[6].indexname "attributefield1"
+indexinfo[0].command[6].command "index"
+indexinfo[0].command[7].indexname "attributefield1"
+indexinfo[0].command[7].command "attribute"
+indexinfo[0].command[8].indexname "attributefield1"
+indexinfo[0].command[8].command "exact @"
+indexinfo[0].command[9].indexname "attributefield2"
+indexinfo[0].command[9].command "index"
+indexinfo[0].command[10].indexname "attributefield2"
+indexinfo[0].command[10].command "attribute"
+indexinfo[0].command[11].indexname "attributefield2"
+indexinfo[0].command[11].command "exact @"
+indexinfo[0].command[12].indexname "indexfield1"
+indexinfo[0].command[12].command "index"
+indexinfo[0].command[13].indexname "indexfield1"
+indexinfo[0].command[13].command "lowercase"
+indexinfo[0].command[14].indexname "indexfield1"
+indexinfo[0].command[14].command "exact @"
+indexinfo[0].command[15].indexname "indexfield2"
+indexinfo[0].command[15].command "index"
+indexinfo[0].command[16].indexname "indexfield2"
+indexinfo[0].command[16].command "lowercase"
+indexinfo[0].command[17].indexname "indexfield2"
+indexinfo[0].command[17].command "exact @"
+indexinfo[0].command[18].indexname "rankfeatures"
+indexinfo[0].command[18].command "index"
+indexinfo[0].command[19].indexname "summaryfeatures"
+indexinfo[0].command[19].command "index" \ No newline at end of file
diff --git a/config-model/src/test/derived/prefixexactattribute/prefixexactattribute.sd b/config-model/src/test/derived/prefixexactattribute/prefixexactattribute.sd
new file mode 100644
index 00000000000..d2835a0e0f2
--- /dev/null
+++ b/config-model/src/test/derived/prefixexactattribute/prefixexactattribute.sd
@@ -0,0 +1,52 @@
+# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search prefixexactattribute {
+
+ document prefixexactattribute {
+
+ field indexfield0 type string {
+ indexing: index
+ match {
+ prefix
+ max-length: 79
+ }
+ }
+
+ field attributefield1 type string {
+ indexing: attribute
+ match {
+ prefix
+ exact
+ exact-terminator: "@"
+ }
+ }
+
+ field attributefield2 type string {
+ indexing: attribute
+ match {
+ exact
+ prefix
+ exact-terminator: "@"
+ }
+ }
+
+ field indexfield1 type string {
+ indexing: index
+ match {
+ exact
+ prefix
+ exact-terminator: "@"
+ }
+ }
+
+ # Old style - deprecated
+ field indexfield2 type string {
+ indexing: index
+ index: prefix
+ match {
+ exact
+ exact-terminator: "@"
+ }
+ }
+
+ }
+}
diff --git a/config-model/src/test/derived/prefixexactattribute/vsmfields.cfg b/config-model/src/test/derived/prefixexactattribute/vsmfields.cfg
new file mode 100644
index 00000000000..598dfc0b6b1
--- /dev/null
+++ b/config-model/src/test/derived/prefixexactattribute/vsmfields.cfg
@@ -0,0 +1,38 @@
+documentverificationlevel 0
+searchall 1
+fieldspec[0].name "indexfield0"
+fieldspec[0].searchmethod AUTOUTF8
+fieldspec[0].arg1 "prefix"
+fieldspec[0].maxlength 79
+fieldspec[0].fieldtype INDEX
+fieldspec[1].name "attributefield1"
+fieldspec[1].searchmethod AUTOUTF8
+fieldspec[1].arg1 "exact"
+fieldspec[1].maxlength 1048576
+fieldspec[1].fieldtype ATTRIBUTE
+fieldspec[2].name "attributefield2"
+fieldspec[2].searchmethod AUTOUTF8
+fieldspec[2].arg1 "exact"
+fieldspec[2].maxlength 1048576
+fieldspec[2].fieldtype ATTRIBUTE
+fieldspec[3].name "indexfield1"
+fieldspec[3].searchmethod AUTOUTF8
+fieldspec[3].arg1 "exact"
+fieldspec[3].maxlength 1048576
+fieldspec[3].fieldtype INDEX
+fieldspec[4].name "indexfield2"
+fieldspec[4].searchmethod AUTOUTF8
+fieldspec[4].arg1 "exact"
+fieldspec[4].maxlength 1048576
+fieldspec[4].fieldtype INDEX
+documenttype[0].name "prefixexactattribute"
+documenttype[0].index[0].name "indexfield0"
+documenttype[0].index[0].field[0].name "indexfield0"
+documenttype[0].index[1].name "attributefield1"
+documenttype[0].index[1].field[0].name "attributefield1"
+documenttype[0].index[2].name "attributefield2"
+documenttype[0].index[2].field[0].name "attributefield2"
+documenttype[0].index[3].name "indexfield1"
+documenttype[0].index[3].field[0].name "indexfield1"
+documenttype[0].index[4].name "indexfield2"
+documenttype[0].index[4].field[0].name "indexfield2" \ No newline at end of file