# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. search tensor { document tensor { field f1 type tensor(x[]) { indexing: summary } field f2 type tensor(x[2],y[]) { indexing: attribute } field f3 type tensor(x{}) { indexing: attribute | summary } field f4 type tensor(x[],y[]) { indexing: attribute | summary attribute: tensor(x[10],y[20]) } } rank-profile profile1 { first-phase { expression: map(attribute(f4),f(x)(x*x)) + reduce(random(x[2],y[3]), count) * rename(attribute(f4), (x, y), (y, x)) } } rank-profile profile2 { first-phase { expression: sum(matmul(attribute(f4), diag(x[2],y[2],z[3]), x)) } } rank-profile profile3 { first-phase { expression: tensor(i[10])(i) * attribute(f4) } } }