| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Response containing search results from an index. |
| | 20 | | /// </summary> |
| | 21 | | public partial class DocumentSearchResult<T> |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the DocumentSearchResult class. |
| | 25 | | /// </summary> |
| 0 | 26 | | internal DocumentSearchResult() |
| | 27 | | { |
| 0 | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the DocumentSearchResult class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="count">The total count of results found by the search |
| | 35 | | /// operation, or null if the count was not requested. If present, the |
| | 36 | | /// count may be greater than the number of results in this response. |
| | 37 | | /// This can happen if you use the $top or $skip parameters, or if |
| | 38 | | /// Azure Cognitive Search can't return all the requested documents in |
| | 39 | | /// a single Search response.</param> |
| | 40 | | /// <param name="coverage">A value indicating the percentage of the |
| | 41 | | /// index that was included in the query, or null if minimumCoverage |
| | 42 | | /// was not specified in the request.</param> |
| | 43 | | /// <param name="facets">The facet query results for the search |
| | 44 | | /// operation, organized as a collection of buckets for each faceted |
| | 45 | | /// field; null if the query did not include any facet |
| | 46 | | /// expressions.</param> |
| | 47 | | /// <param name="nextPageParameters">Continuation JSON payload returned |
| | 48 | | /// when Azure Cognitive Search can't return all the requested results |
| | 49 | | /// in a single Search response. You can use this JSON along with |
| | 50 | | /// @odata.nextLink to formulate another POST Search request to get the |
| | 51 | | /// next part of the search response.</param> |
| | 52 | | /// <param name="results">The sequence of results returned by the |
| | 53 | | /// query.</param> |
| | 54 | | /// <param name="nextLink">Continuation URL returned when Azure |
| | 55 | | /// Cognitive Search can't return all the requested results in a single |
| | 56 | | /// Search response. You can use this URL to formulate another GET or |
| | 57 | | /// POST Search request to get the next part of the search response. |
| | 58 | | /// Make sure to use the same verb (GET or POST) as the request that |
| | 59 | | /// produced this response.</param> |
| 0 | 60 | | internal DocumentSearchResult(long? count = default(long?), double? coverage = default(double?), IDictionary<str |
| | 61 | | { |
| 0 | 62 | | Count = count; |
| 0 | 63 | | Coverage = coverage; |
| 0 | 64 | | Facets = facets; |
| 0 | 65 | | NextPageParameters = nextPageParameters; |
| 0 | 66 | | Results = results; |
| 0 | 67 | | NextLink = nextLink; |
| 0 | 68 | | CustomInit(); |
| 0 | 69 | | } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// An initialization method that performs custom operations like setting defaults |
| | 73 | | /// </summary> |
| | 74 | | partial void CustomInit(); |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets the total count of results found by the search operation, or |
| | 78 | | /// null if the count was not requested. If present, the count may be |
| | 79 | | /// greater than the number of results in this response. This can |
| | 80 | | /// happen if you use the $top or $skip parameters, or if Azure |
| | 81 | | /// Cognitive Search can't return all the requested documents in a |
| | 82 | | /// single Search response. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "@odata.count")] |
| 170 | 85 | | public long? Count { get; private set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Gets a value indicating the percentage of the index that was |
| | 89 | | /// included in the query, or null if minimumCoverage was not specified |
| | 90 | | /// in the request. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "@search.coverage")] |
| 170 | 93 | | public double? Coverage { get; private set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets the facet query results for the search operation, organized as |
| | 97 | | /// a collection of buckets for each faceted field; null if the query |
| | 98 | | /// did not include any facet expressions. |
| | 99 | | /// </summary> |
| | 100 | | [JsonProperty(PropertyName = "@search.facets")] |
| 206 | 101 | | public IDictionary<string, IList<FacetResult>> Facets { get; private set; } |
| | 102 | |
|
| | 103 | | /// <summary> |
| | 104 | | /// Gets continuation JSON payload returned when Azure Cognitive Search |
| | 105 | | /// can't return all the requested results in a single Search response. |
| | 106 | | /// You can use this JSON along with @odata.nextLink to formulate |
| | 107 | | /// another POST Search request to get the next part of the search |
| | 108 | | /// response. |
| | 109 | | /// </summary> |
| | 110 | | [JsonProperty(PropertyName = "@search.nextPageParameters")] |
| 54 | 111 | | internal SearchRequest NextPageParameters { get; private set; } |
| | 112 | |
|
| | 113 | | /// <summary> |
| | 114 | | /// Gets the sequence of results returned by the query. |
| | 115 | | /// </summary> |
| | 116 | | [JsonProperty(PropertyName = "value")] |
| 748 | 117 | | public IList<SearchResult<T>> Results { get; private set; } |
| | 118 | |
|
| | 119 | | /// <summary> |
| | 120 | | /// Gets continuation URL returned when Azure Cognitive Search can't |
| | 121 | | /// return all the requested results in a single Search response. You |
| | 122 | | /// can use this URL to formulate another GET or POST Search request to |
| | 123 | | /// get the next part of the search response. Make sure to use the same |
| | 124 | | /// verb (GET or POST) as the request that produced this response. |
| | 125 | | /// </summary> |
| | 126 | | [JsonProperty(PropertyName = "@odata.nextLink")] |
| 230 | 127 | | internal string NextLink { get; private set; } |
| | 128 | |
|
| | 129 | | } |
| | 130 | | } |