Class ScriptedSimilarityDescriptor
A similarity that allows a script to be used in order to specify how scores should be computed.
Inheritance
ScriptedSimilarityDescriptor
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ScriptedSimilarityDescriptor : DescriptorBase<ScriptedSimilarityDescriptor, IScriptedSimilarity>, IDescriptor, IScriptedSimilarity, ISimilarity
Methods
| Edit this page View SourceScript(Func<ScriptDescriptor, IScript>)
Script to calculate similarity
Declaration
public ScriptedSimilarityDescriptor Script(Func<ScriptDescriptor, IScript> selector)
Parameters
Type | Name | Description |
---|---|---|
Func<ScriptDescriptor, IScript> | selector |
Returns
Type | Description |
---|---|
ScriptedSimilarityDescriptor |