summaryrefslogtreecommitdiffstats
path: root/sample-apps/blog-recommendation/src/main/application/searchdefinitions/user.sd
blob: 3f545ef406c16748b7def2c20a4ca4befe49b43e (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
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search user {
    document user {

        field user_id type string {
            indexing: summary | attribute
            attribute: fast-search
        }

        field has_read_items type array<string> {
            indexing: summary | attribute
        }

        # see http://vespa.corp.yahoo.com/6/documentation/reference/search-definitions.html#tensor-type-spec
        field user_item_cf type tensor {
            indexing: summary | attribute
            attribute: tensor(user_item_cf[10])
        }

        field has_user_item_cf type byte {
            indexing: summary | attribute
            attribute: fast-search
        }

    }

}