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

Download Open API Spec

RescoreQuery

org.sagebionetworks.repo.model.search.dsl.RescoreQuery

The secondary-scoring portion of a rescore stage: a query whose score is blended with the original score.

Field Type Description
rescore_query Query

A single OpenSearch query DSL clause. Exactly one of the properties below may be set — the set property names the clause kind. See query vs. filter context and term-level vs. full-text queries.

The field-keyed leaf clauses (match, term, range, ...) are maps whose key is the column name and whose value is the per-field options object — only the long form is accepted (e.g. {"match":{"title":{"query":"x"}}}, not the {"match":{"title":"x"}} shorthand). The compound clauses (bool, dis_max, ...) nest further Query DSL clauses recursively.

query_weight NUMBER Optional. Weight applied to the original query score. Default 1.0.
rescore_query_weight NUMBER Optional. Weight applied to the rescore-query score. Default 1.0.
score_mode STRING Optional. How the two scores combine: total (default), multiply, avg, max, or min.