RandomScoringFunction Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a function that assigns pseudo-random scores to documents for randomized ordering. Random scoring functions do not take a boost. A scoring profile with a random function cannot define text weights or other function types, and can contain only one random function. Random scoring replaces the query and vector similarity scores, including for hybrid queries, so results are returned in random order.
public class RandomScoringFunction : Azure.Search.Documents.Indexes.Models.ScoringFunction, System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Indexes.Models.RandomScoringFunction>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Indexes.Models.RandomScoringFunction>
type RandomScoringFunction = class
inherit ScoringFunction
interface IJsonModel<RandomScoringFunction>
interface IPersistableModel<RandomScoringFunction>
Public Class RandomScoringFunction
Inherits ScoringFunction
Implements IJsonModel(Of RandomScoringFunction), IPersistableModel(Of RandomScoringFunction)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| RandomScoringFunction() |
Initializes a new instance of RandomScoringFunction. |
Properties
| Name | Description |
|---|---|
| Boost |
Gets or sets a multiplier for the raw score. (Inherited from ScoringFunction) |
| FieldName |
Gets or sets the name of the field used as input to the scoring function. (Inherited from ScoringFunction) |
| Interpolation |
A value indicating how boosting will be interpolated across document scores; defaults to "Linear". (Inherited from ScoringFunction) |
| Parameters |
Optional parameters for seeded random scoring. Omit this property for request-scoped random ordering. |