Permalink
723a9e8 Aug 31, 2017
1 contributor

Users who have contributed to this file

52 lines (34 sloc) 1013 Bytes
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search music {
document music {
field artist type string {
indexing: summary | index
}
field artistId type string {
indexing: summary | attribute
}
field title type string {
indexing: summary | index
}
field album type string {
indexing: index
}
field duration type int {
indexing: summary
}
field year type int {
indexing: summary | attribute
}
field popularity type int {
indexing: summary | attribute
}
}
fieldset default {
fields: artist, title, album
}
rank-profile song inherits default {
first-phase {
expression:nativeRank(artist,title,album) + if(isNan(attribute(popularity)) == 1, 0,attribute(popularity))
}
}
}