diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /config-model/src/test/derived/indexswitches |
Publish
Diffstat (limited to 'config-model/src/test/derived/indexswitches')
8 files changed, 164 insertions, 0 deletions
diff --git a/config-model/src/test/derived/indexswitches/attributes.cfg b/config-model/src/test/derived/indexswitches/attributes.cfg new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/config-model/src/test/derived/indexswitches/attributes.cfg diff --git a/config-model/src/test/derived/indexswitches/documentmanager.cfg b/config-model/src/test/derived/indexswitches/documentmanager.cfg new file mode 100644 index 00000000000..0a32e670d7b --- /dev/null +++ b/config-model/src/test/derived/indexswitches/documentmanager.cfg @@ -0,0 +1,50 @@ +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 -555640823 +datatype[1].structtype[0].name "indexswitches.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 "title" +datatype[1].structtype[0].field[0].datatype 2 +datatype[1].structtype[0].field[1].name "descr" +datatype[1].structtype[0].field[1].datatype 2 +datatype[1].structtype[0].field[2].name "source_src" +datatype[1].structtype[0].field[2].datatype 2 +datatype[1].structtype[0].field[3].name "source" +datatype[1].structtype[0].field[3].datatype 2 +datatype[1].structtype[0].field[4].name "rankfeatures" +datatype[1].structtype[0].field[4].datatype 2 +datatype[1].structtype[0].field[5].name "summaryfeatures" +datatype[1].structtype[0].field[5].datatype 2 +datatype[2].id -1892617122 +datatype[2].structtype[0].name "indexswitches.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 -753375626 +datatype[3].documenttype[0].name "indexswitches" +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 -555640823 +datatype[3].documenttype[0].bodystruct -1892617122 +datatype[3].documenttype[0].fieldsets{default}.fields[0] "descr" +datatype[3].documenttype[0].fieldsets{default}.fields[1] "title" +datatype[3].documenttype[0].fieldsets{[document]}.fields[0] "descr" +datatype[3].documenttype[0].fieldsets{[document]}.fields[1] "source_src" +datatype[3].documenttype[0].fieldsets{[document]}.fields[2] "title" diff --git a/config-model/src/test/derived/indexswitches/ilscripts.cfg b/config-model/src/test/derived/indexswitches/ilscripts.cfg new file mode 100644 index 00000000000..706f4105224 --- /dev/null +++ b/config-model/src/test/derived/indexswitches/ilscripts.cfg @@ -0,0 +1,9 @@ +maxtermoccurrences 100 +ilscript[0].doctype "indexswitches" +ilscript[0].docfield[0] "title" +ilscript[0].docfield[1] "descr" +ilscript[0].docfield[2] "source_src" +ilscript[0].content[0] "clear_state | guard { input source_src | switch { case \"theweb\": input source_src | tokenize normalize | summary source | index source; case \"amg\": input source_src | tokenize normalize | summary source; default: input source_src . \" partner\" | tokenize normalize | summary source | index source; }; }" +ilscript[0].content[1] "clear_state | guard { input title | tokenize normalize stem:\"SHORTEST\" | summary title | index title; }" +ilscript[0].content[2] "clear_state | guard { input descr | tokenize normalize stem:\"SHORTEST\" | summary descr | index descr; }" +ilscript[0].content[3] "input source_src | passthrough source_src"
\ No newline at end of file diff --git a/config-model/src/test/derived/indexswitches/index-info.cfg b/config-model/src/test/derived/indexswitches/index-info.cfg new file mode 100644 index 00000000000..3daf23f8b67 --- /dev/null +++ b/config-model/src/test/derived/indexswitches/index-info.cfg @@ -0,0 +1,41 @@ +indexinfo[0].name "indexswitches" +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 "title" +indexinfo[0].command[2].command "index" +indexinfo[0].command[3].indexname "default" +indexinfo[0].command[3].command "index" +indexinfo[0].command[4].indexname "title" +indexinfo[0].command[4].command "lowercase" +indexinfo[0].command[5].indexname "default" +indexinfo[0].command[5].command "lowercase" +indexinfo[0].command[6].indexname "title" +indexinfo[0].command[6].command "stem:SHORTEST" +indexinfo[0].command[7].indexname "default" +indexinfo[0].command[7].command "stem:SHORTEST" +indexinfo[0].command[8].indexname "title" +indexinfo[0].command[8].command "normalize" +indexinfo[0].command[9].indexname "default" +indexinfo[0].command[9].command "normalize" +indexinfo[0].command[10].indexname "descr" +indexinfo[0].command[10].command "index" +indexinfo[0].command[11].indexname "descr" +indexinfo[0].command[11].command "lowercase" +indexinfo[0].command[12].indexname "descr" +indexinfo[0].command[12].command "stem:SHORTEST" +indexinfo[0].command[13].indexname "descr" +indexinfo[0].command[13].command "normalize" +indexinfo[0].command[14].indexname "source_src" +indexinfo[0].command[14].command "index" +indexinfo[0].command[15].indexname "rankfeatures" +indexinfo[0].command[15].command "index" +indexinfo[0].command[16].indexname "source" +indexinfo[0].command[16].command "index" +indexinfo[0].command[17].indexname "source" +indexinfo[0].command[17].command "lowercase" +indexinfo[0].command[18].indexname "source" +indexinfo[0].command[18].command "normalize" +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/indexswitches/indexswitches.sd b/config-model/src/test/derived/indexswitches/indexswitches.sd new file mode 100644 index 00000000000..9b08a0c9386 --- /dev/null +++ b/config-model/src/test/derived/indexswitches/indexswitches.sd @@ -0,0 +1,32 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search indexswitches { + + document indexswitches { + + field title type string { + indexing: summary | index + } + + field descr type string { + indexing: summary | index + } + + field source_src type string { + + } + } + field source type string { + indexing { + input source_src | + switch { + case "amg": input source_src | summary; + case "theweb": input source_src | summary | index; + default: input source_src . " partner" | summary | index; + }; + } + stemming: none + } + fieldset default { + fields: title, descr + } +} diff --git a/config-model/src/test/derived/indexswitches/rank-profiles.cfg b/config-model/src/test/derived/indexswitches/rank-profiles.cfg new file mode 100644 index 00000000000..caca83a9a91 --- /dev/null +++ b/config-model/src/test/derived/indexswitches/rank-profiles.cfg @@ -0,0 +1,10 @@ +rankprofile[0].name "default" +rankprofile[1].name "unranked" +rankprofile[1].fef.property[0].name "vespa.rank.firstphase" +rankprofile[1].fef.property[0].value "value(0)" +rankprofile[1].fef.property[1].name "vespa.hitcollector.heapsize" +rankprofile[1].fef.property[1].value "0" +rankprofile[1].fef.property[2].name "vespa.hitcollector.arraysize" +rankprofile[1].fef.property[2].value "0" +rankprofile[1].fef.property[3].name "vespa.dump.ignoredefaultfeatures" +rankprofile[1].fef.property[3].value "true"
\ No newline at end of file diff --git a/config-model/src/test/derived/indexswitches/summary.cfg b/config-model/src/test/derived/indexswitches/summary.cfg new file mode 100644 index 00000000000..8644ad1262b --- /dev/null +++ b/config-model/src/test/derived/indexswitches/summary.cfg @@ -0,0 +1,15 @@ +defaultsummaryid 1698765342 +classes[0].id 1698765342 +classes[0].name "default" +classes[0].fields[0].name "source" +classes[0].fields[0].type "longstring" +classes[0].fields[1].name "title" +classes[0].fields[1].type "longstring" +classes[0].fields[2].name "descr" +classes[0].fields[2].type "longstring" +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"
\ No newline at end of file diff --git a/config-model/src/test/derived/indexswitches/summarymap.cfg b/config-model/src/test/derived/indexswitches/summarymap.cfg new file mode 100644 index 00000000000..42b6e811ee6 --- /dev/null +++ b/config-model/src/test/derived/indexswitches/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 |