diff options
author | Jon Bratseth <bratseth@oath.com> | 2021-07-02 12:56:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 12:56:45 +0200 |
commit | 7537c42fa661952916cf91eebbb75e6984505100 (patch) | |
tree | 572a070aea8f67460a9304e69789bc32597bfb82 /config-model/src/test/derived/tokenization/tokenization.sd | |
parent | 12aa238ae9caa794a864013ec8db84097f0df668 (diff) | |
parent | 91ac31746b47eecf998a3d07173f0158bfeb4392 (diff) |
Merge pull request #18514 from vespa-engine/bratseth/tokenization-test
Add a test
Diffstat (limited to 'config-model/src/test/derived/tokenization/tokenization.sd')
-rw-r--r-- | config-model/src/test/derived/tokenization/tokenization.sd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config-model/src/test/derived/tokenization/tokenization.sd b/config-model/src/test/derived/tokenization/tokenization.sd new file mode 100644 index 00000000000..4510a574d60 --- /dev/null +++ b/config-model/src/test/derived/tokenization/tokenization.sd @@ -0,0 +1,23 @@ +schema tokenization { + + document tokenization { + + field text type string { + indexing: index | summary + } + + field text_array type array<string> { + indexing: index | summary + } + + } + + field text_derived type string { + indexing: input text | normalize | index | summary + } + + field text_array_derived type array<string> { + indexing: input text_array | for_each { lowercase } | for_each { normalize } | index | summary + } + +}
\ No newline at end of file |