-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SemanticPrioritizedFields.cs
36 lines (30 loc) · 2.25 KB
/
SemanticPrioritizedFields.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
namespace Azure.Search.Documents.Indexes.Models
{
/// <summary> Describes the title, content, and keywords fields to be used for semantic ranking, captions, highlights, and answers. </summary>
public partial class SemanticPrioritizedFields
{
/// <summary> Initializes a new instance of <see cref="SemanticPrioritizedFields"/>. </summary>
public SemanticPrioritizedFields()
{
ContentFields = new ChangeTrackingList<SemanticField>();
KeywordsFields = new ChangeTrackingList<SemanticField>();
}
/// <summary> Initializes a new instance of <see cref="SemanticPrioritizedFields"/>. </summary>
/// <param name="titleField"> 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. </param>
/// <param name="contentFields"> 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. </param>
/// <param name="keywordsFields"> 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. </param>
internal SemanticPrioritizedFields(SemanticField titleField, IList<SemanticField> contentFields, IList<SemanticField> keywordsFields)
{
TitleField = titleField;
ContentFields = contentFields;
KeywordsFields = keywordsFields;
}
/// <summary> 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. </summary>
public SemanticField TitleField { get; set; }
}
}