summaryrefslogtreecommitdiffstats
path: root/sample-apps/http-api-using-searcher/src/main/application/services.xml
blob: 7db4a8c8c939cf9fb546e3d2c9bc3eac57b0a1da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<services version="1.0">
    <admin version="2.0">
        <adminserver hostalias="node1"/>
    </admin>

    <container id="default" version="1.0">

        <document-api />  <!-- Enable feed endpoint -->

        <search>
            <chain inherits="vespa" id="default">
                <searcher id="com.yahoo.demo.DemoSearcher" bundle="demo">
                    <config name="demo.demo">
                        <demo>
                            <item>
                                <term>smurf</term>
                            </item>
                        </demo>
                    </config>
                </searcher>
            </chain>
            <renderer id="demo" class="com.yahoo.demo.DemoRenderer" bundle="demo" />
        </search>

        <handler id="com.yahoo.demo.DemoHandler" bundle="demo">
            <binding>http://*:8080/demo</binding>
        </handler>

        <component id="com.yahoo.demo.DemoComponent" bundle="demo"/>

        <nodes>
            <node hostalias="node1"/>
        </nodes>
    </container>

    <content id="logical" version="1.0">
        <redundancy>1</redundancy>
        <documents>
            <document mode="index" type="basic"/>
        </documents>

        <group name="mygroup" distribution-key="0">
            <node distribution-key="0" hostalias="node1"/>
        </group>

        <engine>
            <proton>
                <searchable-copies>1</searchable-copies>
            </proton>
        </engine>
    </content>

</services>