Permalink
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (44 sloc) 1.34 KB
# 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
}
field tensor_attribute type tensor(x{}) {
indexing: summary | attribute
attribute: tensor(x{})
}
}
constant tensor_constant {
file: constants/constant_tensor_file.json
type: tensor(x{})
}
rank-profile simple_tensor_ranking inherits default {
first-phase {
expression: sum(query(tensor) * attribute(tensor_attribute))
}
}
rank-profile constant_tensor_ranking inherits default {
first-phase {
expression: sum(query(tensor) * attribute(tensor_attribute) * constant(tensor_constant))
}
}
}