aboutsummaryrefslogtreecommitdiffstats
path: root/sample-apps
diff options
context:
space:
mode:
authorKristian Aune <kraune@yahoo-inc.com>2016-12-22 09:44:27 +0100
committerKristian Aune <kraune@yahoo-inc.com>2016-12-22 09:44:27 +0100
commita5d37f4d26fd4e5d4f26921d89594ae4e0a7b9fc (patch)
tree73f35917b63ad2bf75fe8e60eb546986f4833972 /sample-apps
parent601f11221d764f97f8c864f18fb5a6f1c55d730e (diff)
indent searchdef
Diffstat (limited to 'sample-apps')
-rw-r--r--sample-apps/basic-search/src/main/application/searchdefinitions/music.sd19
1 files changed, 10 insertions, 9 deletions
diff --git a/sample-apps/basic-search/src/main/application/searchdefinitions/music.sd b/sample-apps/basic-search/src/main/application/searchdefinitions/music.sd
index d6bcaac8ae0..c450c07d34b 100644
--- a/sample-apps/basic-search/src/main/application/searchdefinitions/music.sd
+++ b/sample-apps/basic-search/src/main/application/searchdefinitions/music.sd
@@ -3,6 +3,7 @@ search music {
field artist type string {
indexing: summary | index
}
+
field artistId type string {
indexing: summary | attribute
}
@@ -19,13 +20,13 @@ search music {
indexing: summary
}
- field year type int {
- indexing: summary | attribute
- }
+ field year type int {
+ indexing: summary | attribute
+ }
- field popularity type int {
- indexing: summary | attribute
- }
+ field popularity type int {
+ indexing: summary | attribute
+ }
}
fieldset default {
@@ -33,8 +34,8 @@ search music {
}
rank-profile song inherits default {
- first-phase {
- expression:nativeRank(artist,title,album) + if(isNan(attribute(popularity)) == 1, 0,attribute(popularity))
- }
+ first-phase {
+ expression:nativeRank(artist,title,album) + if(isNan(attribute(popularity)) == 1, 0,attribute(popularity))
+ }
}
}