aboutsummaryrefslogtreecommitdiffstats
path: root/sample-apps/blog-recommendation/src/main/application/services.xml
blob: c81cbde602772a709e0f978dc0e65b7a52583042 (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
<?xml version='1.0' encoding='UTF-8'?>
<services version='1.0' xmlns:deploy="vespa" xmlns:preprocess="properties">

  <jdisc id='default' version='1.0'>

    <search>
      <chain id='blog' inherits='vespa'>
        <searcher bundle='recommendation' id='com.yahoo.example.BlogTensorSearcher' />
      </chain>
      <chain id='user' inherits='vespa'>
        <searcher bundle='recommendation' id='com.yahoo.example.UserProfileSearcher' />
      </chain>
      <chain id='default' inherits='vespa'>
        <searcher bundle='recommendation' id='com.yahoo.example.UserProfileSearcher' />
        <searcher bundle='recommendation' id='com.yahoo.example.BlogTensorSearcher' />
      </chain>
    </search>
    <document-api/>
    <nodes>
      <node hostalias='node1'/>
    </nodes>
  </jdisc>

  <content id='content' version='1.0'>
    <redundancy>1</redundancy>
    <documents>
      <document mode='index' type='blog_post'/>
      <document mode='index' type='user'/>
    </documents>
    <nodes>
      <node hostalias='node1' distribution-key='0'/>
    </nodes>
  </content>

</services>