blob: 3d9ab6aa0d25cc6238cc91263373e207aed6459c (
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 Yahoo. 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
}
}
|