You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Schema is as follows:
schema doc {
field modified_chunks type array<string> {
indexing {
input chunks | for_each {
if (1 == 1) {
"YES " . _;
} else {
"NO " . _;
}
} | summary;
}
}
document doc {
field chunks type array<string> {
indexing: summary | index
}
}
}
**Expected behavior**
Indexed text in the field `modified_chunks` is `YES some text`. Because `if` produces an output and that output should be used by the `for_each`.
**Environment (please complete the following information):**
- macos
- Infrastructure: docker
- Versions newest
**Vespa version**
8.256.22
**Additional context**
The actual task was to avoid embedding chunks that are very short. If the above indexing script would work as expected, then that would be doable.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Schema is as follows:
The text was updated successfully, but these errors were encountered: