|
1 |
| -using System.Runtime.Serialization; |
| 1 | +using System; |
| 2 | +using System.Runtime.Serialization; |
2 | 3 | using Elasticsearch.Net.Utf8Json;
|
3 | 4 |
|
4 | 5 | namespace Nest
|
@@ -27,6 +28,7 @@ public interface IMatchQuery : IFieldNameQuery
|
27 | 28 | /// or all of the low frequency terms in the case of an <see cref="Nest.Operator.And" /> match.
|
28 | 29 | /// </summary>
|
29 | 30 | [DataMember(Name = "cutoff_frequency")]
|
| 31 | + [Obsolete("Deprecated in 7.3.0. This option can be omitted since MatchQuery can skips blocks of documents efficiently if the total number of hits is not tracked.")] |
30 | 32 | double? CutoffFrequency { get; set; }
|
31 | 33 |
|
32 | 34 | /// <summary>
|
@@ -112,6 +114,7 @@ public class MatchQuery : FieldNameQueryBase, IMatchQuery
|
112 | 114 | public bool? AutoGenerateSynonymsPhraseQuery { get; set; }
|
113 | 115 |
|
114 | 116 | /// <inheritdoc />
|
| 117 | + [Obsolete("Deprecated in 7.3.0. This option can be omitted since MatchQuery can skips blocks of documents efficiently if the total number of hits is not tracked.")] |
115 | 118 | public double? CutoffFrequency { get; set; }
|
116 | 119 |
|
117 | 120 | /// <inheritdoc />
|
@@ -161,6 +164,7 @@ public class MatchQueryDescriptor<T>
|
161 | 164 | protected virtual string MatchQueryType => null;
|
162 | 165 | string IMatchQuery.Analyzer { get; set; }
|
163 | 166 | bool? IMatchQuery.AutoGenerateSynonymsPhraseQuery { get; set; }
|
| 167 | + [Obsolete("Deprecated in 7.3.0. This option can be omitted since MatchQuery can skips blocks of documents efficiently if the total number of hits is not tracked.")] |
164 | 168 | double? IMatchQuery.CutoffFrequency { get; set; }
|
165 | 169 | IFuzziness IMatchQuery.Fuzziness { get; set; }
|
166 | 170 | MultiTermQueryRewrite IMatchQuery.FuzzyRewrite { get; set; }
|
@@ -190,6 +194,7 @@ public MatchQueryDescriptor<T> FuzzyTranspositions(bool? fuzzyTranspositions = t
|
190 | 194 | Assign(fuzzyTranspositions, (a, v) => a.FuzzyTranspositions = v);
|
191 | 195 |
|
192 | 196 | /// <inheritdoc cref="IMatchQuery.CutoffFrequency" />
|
| 197 | + [Obsolete("Deprecated in 7.3.0. This option can be omitted since MatchQuery can skips blocks of documents efficiently if the total number of hits is not tracked.")] |
193 | 198 | public MatchQueryDescriptor<T> CutoffFrequency(double? cutoffFrequency) => Assign(cutoffFrequency, (a, v) => a.CutoffFrequency = v);
|
194 | 199 |
|
195 | 200 | /// <inheritdoc cref="IMatchQuery.FuzzyRewrite" />
|
|
0 commit comments