diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2020-01-28 19:22:40 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2020-01-28 19:22:40 +0100 |
commit | b3580975c872bb20fc6027dca0b97d6d9d022962 (patch) | |
tree | 28f2f9c54faa88b0b3155211265065d8a6c111fe /config-model/src/test/java/com/yahoo/searchdefinition/derived | |
parent | 2df0c12a503a0fdff8da459618801fb5037a06f0 (diff) |
Change fieldset query-command to add, not override commands
The logic in FieldSet stated that any explicit query-command
will deactivate all the standard derived commands. That is
inconsistent with query-command on fields, not mentioned in
the doc, and will generally break things.
This changes to the normal behavior where query-commands are
additive.
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/derived')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java index 61065cd4bcc..3fc05d789f6 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java @@ -120,6 +120,11 @@ public class ExportingTestCase extends AbstractExportingTestCase { } @Test + public void testFieldSet2() throws IOException, ParseException { + assertCorrectDeriving("fieldset2"); + } + + @Test public void testIndexinfoFieldsets() throws IOException, ParseException { assertCorrectDeriving("indexinfo_fieldsets"); } |