OptionalfieldThe field to score against.
Required for dense_vector, sparse_vector, and text scoring types. Must not be provided for query_string.
OptionalqueryThe text query to use for text and query_string scoring types.
OptionalsparseThe scoring method type.
Possible values: dense_vector, sparse_vector, text, or query_string.
OptionalvaluesThe dense vector values to use for dense_vector scoring type.
A scoring method that defines how documents are scored against a query.
The
typefield determines which other fields are used:dense_vector: Score by dense vector similarity. Requiresfieldorfields, and avaluesarray.sparse_vector: Score by sparse vector similarity. Requiresfieldorfields, andsparse_values.text: Score by BM25 text similarity against a single field. Requiresfieldorfields, andquery.query_string: Score using a Lucene query string. Use field qualifiers (field:(clause)) to target a field, or omit field qualifiers to search against all text-searchable fields. Errors iffieldorfieldsis provided.Export
DocumentScoringMethod