SearchModelFactory.SearchIndexKnowledgeSourceFieldValueBoost Method
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.
A hint that boosts documents based on a field value.
public static Azure.Search.Documents.Indexes.Models.SearchIndexKnowledgeSourceFieldValueBoost SearchIndexKnowledgeSourceFieldValueBoost(string boostInstructions = default, string field = default, System.Collections.Generic.IEnumerable<string> fieldValues = default, double boost = 0);
static member SearchIndexKnowledgeSourceFieldValueBoost : string * string * seq<string> * double -> Azure.Search.Documents.Indexes.Models.SearchIndexKnowledgeSourceFieldValueBoost
Public Shared Function SearchIndexKnowledgeSourceFieldValueBoost (Optional boostInstructions As String = Nothing, Optional field As String = Nothing, Optional fieldValues As IEnumerable(Of String) = Nothing, Optional boost As Double = 0) As SearchIndexKnowledgeSourceFieldValueBoost
Parameters
- boostInstructions
- String
Natural-language instructions that explain when and how to apply the boost.
- field
- String
The name of the search index field.
- fieldValues
- IEnumerable<String>
Representative values for the field.
- boost
- Double
A multiplier for the document score. Must be a positive number not equal to 1.0.
Returns
A new SearchIndexKnowledgeSourceFieldValueBoost instance for mocking.