SearchModelFactory.SemanticPrioritizedFields 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.
Describes the title, content, and keywords fields to be used for semantic ranking, captions, highlights, and answers.
public static Azure.Search.Documents.Indexes.Models.SemanticPrioritizedFields SemanticPrioritizedFields(Azure.Search.Documents.Indexes.Models.SemanticField titleField = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.SemanticField> contentFields = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.SemanticField> keywordsFields = default);
static member SemanticPrioritizedFields : Azure.Search.Documents.Indexes.Models.SemanticField * seq<Azure.Search.Documents.Indexes.Models.SemanticField> * seq<Azure.Search.Documents.Indexes.Models.SemanticField> -> Azure.Search.Documents.Indexes.Models.SemanticPrioritizedFields
Public Shared Function SemanticPrioritizedFields (Optional titleField As SemanticField = Nothing, Optional contentFields As IEnumerable(Of SemanticField) = Nothing, Optional keywordsFields As IEnumerable(Of SemanticField) = Nothing) As SemanticPrioritizedFields
Parameters
- titleField
- SemanticField
Defines the title field to be used for semantic ranking, captions, highlights, and answers. If you don't have a title field in your index, leave this blank.
- contentFields
- IEnumerable<SemanticField>
Defines the content fields to be used for semantic ranking, captions, highlights, and answers. For the best result, the selected fields should contain text in natural language form. The order of the fields in the array represents their priority. Fields with lower priority may get truncated if the content is long.
- keywordsFields
- IEnumerable<SemanticField>
Defines the keyword fields to be used for semantic ranking, captions, highlights, and answers. For the best result, the selected fields should contain a list of keywords. The order of the fields in the array represents their priority. Fields with lower priority may get truncated if the content is long.
Returns
A new SemanticPrioritizedFields instance for mocking.