The Open API specification for Synapse is now available for download!

Download Open API Spec

CombinationParameters

org.sagebionetworks.repo.model.search.dsl.CombinationParameters

Parameters of the combination stage.

Field Type Description
weights ARRAY<NUMBER>

Optional. The weight of each hybrid query clause, positional against hybrid.queries. When set, must hold 2 to 5 entries — 5 being the maximum hybrid.queries length — each in the [0.0, 1.0] range, with a sum equal to 1.0. Weights are decimal percentages: the closer a weight is to 1.0, the more weight is given to its clause. A query may send fewer clauses than there are weights, in which case the weights of the clauses it sends are rescaled to sum to 1.0; a query that sends more clauses than there are weights is rejected. If not provided, every clause is given equal weight.