diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-06-03 08:42:15 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2021-06-03 08:42:15 +0200 |
commit | 2a9e6b4fc298d654f04f23dd0965fb4e221b9ac6 (patch) | |
tree | d54b1b456a9b8e910830302642a8b89bc233ecb3 /configserver/src/test/apps/app-jdisc-only/schemas/music.sd | |
parent | 6d7ba4368a8d81247fa66bfe60557dadaffb4108 (diff) |
searchdefinitions -> schemas
Diffstat (limited to 'configserver/src/test/apps/app-jdisc-only/schemas/music.sd')
-rw-r--r-- | configserver/src/test/apps/app-jdisc-only/schemas/music.sd | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/configserver/src/test/apps/app-jdisc-only/schemas/music.sd b/configserver/src/test/apps/app-jdisc-only/schemas/music.sd new file mode 100644 index 00000000000..a2d4614c657 --- /dev/null +++ b/configserver/src/test/apps/app-jdisc-only/schemas/music.sd @@ -0,0 +1,50 @@ +# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +# A basic search definition - called music, should be saved to music.sd +search music { + + # It contains one document type only - called music as well + document music { + + field title type string { + indexing: summary | index # How this field should be indexed + # index-to: title, default # Create two indexes + weight: 75 # Ranking importancy of this field, used by the built in nativeRank feature + } + + field artist type string { + indexing: summary | attribute | index + # index-to: artist, default + + weight: 25 + } + + field year type int { + indexing: summary | attribute + } + + # Increase query + field popularity type int { + indexing: summary | attribute + } + + field url type uri { + indexing: summary | index + } + + } + + rank-profile default inherits default { + first-phase { + expression: nativeRank(title,artist) + attribute(popularity) + } + + } + + rank-profile textmatch inherits default { + first-phase { + expression: nativeRank(title,artist) + } + + } + +} |