summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/examples
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-09-29 10:47:18 +0200
committerJon Bratseth <bratseth@gmail.com>2020-09-29 10:47:18 +0200
commit91e3973bd7185d2ddc3514fda2027b4caf4939dc (patch)
tree9d522e97250f4b4365a400ac11f6a67273f7747f /config-model/src/test/examples
parent7cdf12a8a87f89573642ffbcba256bf546c4cee6 (diff)
Remove unused file
Diffstat (limited to 'config-model/src/test/examples')
-rw-r--r--config-model/src/test/examples/desktop.sd100
1 files changed, 0 insertions, 100 deletions
diff --git a/config-model/src/test/examples/desktop.sd b/config-model/src/test/examples/desktop.sd
deleted file mode 100644
index 8d263ca9ac4..00000000000
--- a/config-model/src/test/examples/desktop.sd
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-# A search definition of medium complexity
-search desktop {
-
- # A document with some fields.
- # The fields implicitly defines some indices, summary fields and attributes
- document desktop inherits product {
-
- field title type text {
- mandatory: true
- indexing: summary | attribute | index_text
- # index-to: title, default
-
- rank-weight: 300
- rank-type: identity
- }
-
- field manufacturer type text {
- indexing: summary | attribute | index
- # index-to: manufacturer, default
- alias: producer, brand
-
- rank-type: identity
- rank-weight:200
- }
-
- field description type text {
- indexing: summary | index
-
- rank-type: about
- rank-weight: 100
- result-transform: dynamicteaser
- }
-
- field category type text {
- indexing: index
- # index-to: category, default
- rank-weight: 50
- }
-
- field minprice type int {
- indexing: summary | attribute | index
- index-decimals: 2
-
- rank-type: simple
- weight: 30
- staticrankbits: 16
- }
-
- field someorder type int {
- indexing: attribute someorderranking
- staticrankbits someorderranking: 32
- }
-
- # index_url implicitly defines some fields not contained in the document (contexts)
- # If attributes needs to be set on these, it can be done by explicitly listing
- # the fields outside documents (show).
- # I think we should maybe allow setting such field attributes inside the parent
- # field as well for convenience. Both is shown.
- field url type url {
- # Should index mean index_url for url type fields?
- indexing: summary | index_url
- parse-mode: url # Must be default for url types, but shown here anyway
-
- rank-type: link
- }
-
- }
-
- field category_arr type array<text> {
- indexing: input category | split ";" | attribute category_arr
- }
-
- # Overriding some url field setting from rank-type link
- field url.host {
- weight: 1000
- }
-
- # Setting an attribute on a non-field index
- # This is redunant, as default is default
- index default {
- default: true
- }
-
- model default {
- }
-
- # Another rank profile
- model predefinedorder {
- dynamicranking: off
- attribute: someorder
- }
-
- # Some experimental ranking changes
- model experimental inherits default {
- }
-
-}
-
-