-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
QueryCaptionResult.cs
39 lines (33 loc) · 1.88 KB
/
QueryCaptionResult.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
37
38
39
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
namespace Azure.Search.Documents.Models
{
/// <summary> Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type 'semantic'.. </summary>
public partial class QueryCaptionResult
{
/// <summary> Initializes a new instance of <see cref="QueryCaptionResult"/>. </summary>
internal QueryCaptionResult()
{
AdditionalProperties = new ChangeTrackingDictionary<string, object>();
}
/// <summary> Initializes a new instance of <see cref="QueryCaptionResult"/>. </summary>
/// <param name="text"> A representative text passage extracted from the document most relevant to the search query. </param>
/// <param name="highlights"> Same text passage as in the Text property with highlighted phrases most relevant to the query. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
internal QueryCaptionResult(string text, string highlights, IReadOnlyDictionary<string, object> additionalProperties)
{
Text = text;
Highlights = highlights;
AdditionalProperties = additionalProperties;
}
/// <summary> A representative text passage extracted from the document most relevant to the search query. </summary>
public string Text { get; }
/// <summary> Same text passage as in the Text property with highlighted phrases most relevant to the query. </summary>
public string Highlights { get; }
/// <summary> Additional Properties. </summary>
public IReadOnlyDictionary<string, object> AdditionalProperties { get; }
}
}