blob: adf19f29f4e19ed1d30593d8c74f8bc7c92d3d15 (
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
|
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# A collection of syntax we can visually check is parsed correctly
schema syntax {
document syntax {
field mystring type string {
}
}
field myarray1 type array<string> {
indexing: input mystring | split ";" | for_each { trim } | attribute
}
field myarray2 type array<string> {
indexing: input mystring | split ";" | for_each { trim } | attribute
index: enable-bm25
}
field myarray2 type array<string> {
indexing {
input mystring | split ";" | for_each {
trim
}
| attribute;
}
index: enable-bm25
}
}
|