aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <jonbratseth@yahoo.com>2016-12-22 10:02:36 +0100
committerGitHub <noreply@github.com>2016-12-22 10:02:36 +0100
commit59d2d4ec612d771444d3a2858eb6089403e45662 (patch)
tree73f35917b63ad2bf75fe8e60eb546986f4833972
parent601f11221d764f97f8c864f18fb5a6f1c55d730e (diff)
parenta5d37f4d26fd4e5d4f26921d89594ae4e0a7b9fc (diff)
Merge pull request #1372 from yahoo/kkraune/indent
indent searchdef
-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))
+ }
}
}