aboutsummaryrefslogtreecommitdiffstats
path: root/configdefinitions/src/vespa/indexschema.def
blob: 12f2928a8c7f0ab5c367a3f87cbfa92d15dec85a (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
# Copyright Vespa.ai. 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
## Whether the index field should use posting lists with interleaved features or not.
indexfield[].interleavedfeatures bool default=false

## 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