From 23835c0ef5dfe290b3d08aa69a820bf268f5f7a0 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Fri, 11 Jan 2019 14:54:17 +0100 Subject: Disallow dash in search definition, document, field and function names --- config-model/src/test/examples/invalid-name.sd | 12 ++++++++++++ config-model/src/test/examples/simple-with-weird-name.sd | 13 ------------- 2 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 config-model/src/test/examples/invalid-name.sd delete mode 100644 config-model/src/test/examples/simple-with-weird-name.sd (limited to 'config-model/src/test/examples') diff --git a/config-model/src/test/examples/invalid-name.sd b/config-model/src/test/examples/invalid-name.sd new file mode 100644 index 00000000000..f26fcc723f4 --- /dev/null +++ b/config-model/src/test/examples/invalid-name.sd @@ -0,0 +1,12 @@ +# Dashes in names are not allowed +search invalid-name { + + document invalid-name { + + field title type string { + + } + + } + +} \ No newline at end of file diff --git a/config-model/src/test/examples/simple-with-weird-name.sd b/config-model/src/test/examples/simple-with-weird-name.sd deleted file mode 100644 index 109f4f7bba7..00000000000 --- a/config-model/src/test/examples/simple-with-weird-name.sd +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -# A minimal doc with name which is incompatible with YQL+ -search simple-with-weird-name { - - document simple-with-weird-name { - - field title type string { - indexing: summary | index - } - - } - -} -- cgit v1.2.3