aboutsummaryrefslogtreecommitdiffstats
path: root/configdefinitions/src/vespa/indexschema.def
blob: 7153164bfab026b70ef97ad75c0619fd89d4684c (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
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
## Config specifying the index fields and field collections that are part of an index schema.
namespace=vespa.config.search

## The name of the index field.
indexfield[].name string
## The data type of the index field.
indexfield[].datatype enum { STRING, INT64 } default=STRING
## The collection type of the index field.
indexfield[].collectiontype enum { SINGLE, ARRAY, WEIGHTEDSET } default=SINGLE
## Whether the index should support prefix searches.
indexfield[].prefix bool default=false
## Whether the index should support phrase searches.
indexfield[].phrases bool default=false
## Whether the index should have posting lists with word positions.
indexfield[].positions bool default=true
## Average element length
indexfield[].averageelementlen int default=512

## The name of the field collection (aka logical view).
fieldset[].name string
## The name of the index field that are part of this collection.
fieldset[].field[].name string