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 /application/src/test/app-packages |
Publish
Diffstat (limited to 'application/src/test/app-packages')
4 files changed, 70 insertions, 0 deletions
diff --git a/application/src/test/app-packages/searcher-app/components/com.yahoo.vespatest.ExtraHitSearcher.jar b/application/src/test/app-packages/searcher-app/components/com.yahoo.vespatest.ExtraHitSearcher.jar Binary files differnew file mode 100644 index 00000000000..90845ab51f9 --- /dev/null +++ b/application/src/test/app-packages/searcher-app/components/com.yahoo.vespatest.ExtraHitSearcher.jar diff --git a/application/src/test/app-packages/searcher-app/services.xml b/application/src/test/app-packages/searcher-app/services.xml new file mode 100644 index 00000000000..f99fbb51621 --- /dev/null +++ b/application/src/test/app-packages/searcher-app/services.xml @@ -0,0 +1,15 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. --> +<container version='1.0'> + <search> + <chain id="default"> + <searcher id='com.yahoo.vespatest.ExtraHitSearcher' bundle='com.yahoo.vespatest.ExtraHitSearcher:1.2'> + <config name='vespatest.extra-hit'> + <exampleString>Heal the </exampleString> + <enumVal>World</enumVal> + </config> + </searcher> + + </chain> + </search> +</container> diff --git a/application/src/test/app-packages/withcontent/searchdefinitions/mydoc.sd b/application/src/test/app-packages/withcontent/searchdefinitions/mydoc.sd new file mode 100644 index 00000000000..4e557a0fc04 --- /dev/null +++ b/application/src/test/app-packages/withcontent/searchdefinitions/mydoc.sd @@ -0,0 +1,17 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search mydoc { + + document mydoc { + + field title type string { + indexing: index + } + + field substring type string { + indexing: index + match: gram + } + + } + +} diff --git a/application/src/test/app-packages/withcontent/services.xml b/application/src/test/app-packages/withcontent/services.xml new file mode 100644 index 00000000000..8f19a2f0bc8 --- /dev/null +++ b/application/src/test/app-packages/withcontent/services.xml @@ -0,0 +1,38 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. --> +<services> + + <jdisc version="1.0"> + + <search> + <chain id="default" inherits="vespa"/> + <provider id="bar" type="local" cluster="foo"> + <searcher id="MockResultSearcher" class="com.yahoo.application.MockResultSearcher"/> + </provider> + </search> + + <!-- TODO .. + <document-processing> + <chain id="default"> + <documentprocessor id="TestDocProc" class="com.yahoo.application.TestDocProc"> + <config name="foo.something"> + <variable>value</variable> + </config> + </documentprocessor> + </chain> + </document-processing> + --> + + </jdisc> + + <content version="1.0" id="foo"> + <redundancy>2</redundancy> + <documents> + <document type="mydoc" mode="index"/> + </documents> + <nodes> + <node hostalias="node1" distribution-key="1"/> + </nodes> + </content> + +</services> |