diff options
author | Tor Brede Vekterli <vekterli@oath.com> | 2018-11-22 16:20:27 +0100 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@oath.com> | 2018-11-22 16:33:24 +0100 |
commit | cb4ffb997d22a1128b33fe3ea0b07f1a2b9862b9 (patch) | |
tree | 38de3229e1e0b6a26fd2db8d8daa453410600c56 /config-model/src/test/examples | |
parent | 439f4d13240ee420a9270625406035ffa28a5ba7 (diff) |
Add unit test for position zcurve field not being part of [document] fieldset
Should work as expected when the field is defined in a parent document type.
Diffstat (limited to 'config-model/src/test/examples')
-rw-r--r-- | config-model/src/test/examples/position_base.sd | 8 | ||||
-rw-r--r-- | config-model/src/test/examples/position_inherited.sd | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/config-model/src/test/examples/position_base.sd b/config-model/src/test/examples/position_base.sd new file mode 100644 index 00000000000..8f8ff85cff2 --- /dev/null +++ b/config-model/src/test/examples/position_base.sd @@ -0,0 +1,8 @@ +# Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search position_base { + document position_base { + field pos type position { + indexing: attribute + } + } +} diff --git a/config-model/src/test/examples/position_inherited.sd b/config-model/src/test/examples/position_inherited.sd new file mode 100644 index 00000000000..b3341e01f80 --- /dev/null +++ b/config-model/src/test/examples/position_inherited.sd @@ -0,0 +1,4 @@ +# Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search position_inherited { + document position_inherited inherits position_base {} +} |