File tree Expand file tree Collapse file tree 3 files changed +1
-28
lines changed Expand file tree Collapse file tree 3 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ public partial class GetRequest<TDocument> where TDocument : class { }
1212
1313 public partial class GetDescriptor < TDocument > where TDocument : class
1414 {
15- public GetDescriptor < TDocument > ExecuteOnPrimary ( ) => Preference ( "_primary" ) ;
16-
1715 public GetDescriptor < TDocument > ExecuteOnLocalShard ( ) => Preference ( "_local" ) ;
1816 }
1917}
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ public partial class SourceRequest<TDocument> where TDocument : class { }
1414
1515 public partial class SourceDescriptor < TDocument > where TDocument : class
1616 {
17- public SourceDescriptor < TDocument > ExecuteOnPrimary ( ) => Preference ( "_primary" ) ;
18-
1917 public SourceDescriptor < TDocument > ExecuteOnLocalShard ( ) => Preference ( "_local" ) ;
2018 }
2119}
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public partial class SearchRequest
9696
9797 [ JsonFormatter ( typeof ( IndicesBoostFormatter ) ) ]
9898 public IDictionary < IndexName , double > IndicesBoost { get ; set ; }
99-
99+
100100 public double ? MinScore { get ; set ; }
101101 public QueryContainer PostFilter { get ; set ; }
102102 public bool ? Profile { get ; set ; }
@@ -243,29 +243,6 @@ public SearchDescriptor<TInferDocument> Source(Func<SourceFilterDescriptor<TInfe
243243 /// </summary>
244244 public SearchDescriptor < TInferDocument > TerminateAfter ( long ? terminateAfter ) => Assign ( terminateAfter , ( a , v ) => a . TerminateAfter = v ) ;
245245
246- /// <summary>
247- /// <para>
248- /// Controls a preference of which shard replicas to execute the search request on.
249- /// By default, the operation is randomized between the each shard replicas.
250- /// </para>
251- /// <para>
252- /// The operation will go and be executed only on the primary shards.
253- /// </para>
254- /// </summary>
255- public SearchDescriptor < TInferDocument > ExecuteOnPrimary ( ) => Preference ( "_primary" ) ;
256-
257- /// <summary>
258- /// <para>
259- /// Controls a preference of which shard replicas to execute the search request on.
260- /// By default, the operation is randomized between the each shard replicas.
261- /// </para>
262- /// <para>
263- /// The operation will go and be executed on the primary shard, and if not available (failover),
264- /// will execute on other shards.
265- /// </para>
266- /// </summary>
267- public SearchDescriptor < TInferDocument > ExecuteOnPrimaryFirst ( ) => Preference ( "_primary_first" ) ;
268-
269246 /// <summary>
270247 /// <para>
271248 /// Controls a preference of which shard replicas to execute the search request on.
You can’t perform that action at this time.
0 commit comments