File tree Expand file tree Collapse file tree 2 files changed +0
-28
lines changed
Nest.Tests.Unit/Search/SearchOptions Expand file tree Collapse file tree 2 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -120,16 +120,6 @@ public void TestExecuteOnNode()
120120 StringAssert . Contains ( "preference=_only_node:somenode" , result . ConnectionStatus . RequestUrl ) ;
121121 }
122122 [ Test ]
123- public void TestExecuteOnCustomNode ( )
124- {
125- var s = new SearchDescriptor < ElasticSearchProject > ( )
126- . From ( 0 )
127- . Size ( 10 )
128- . ExecuteOnCustomNode ( "somenode" ) ;
129- var result = this . _client . Search ( s ) ;
130- StringAssert . Contains ( "preference=somenode" , result . ConnectionStatus . RequestUrl ) ;
131- }
132- [ Test ]
133123 public void TestExecuteOnPreferredNode ( )
134124 {
135125 var s = new SearchDescriptor < ElasticSearchProject > ( )
Original file line number Diff line number Diff line change @@ -417,24 +417,6 @@ public SearchDescriptor<T> ExecuteOnNode(string node)
417417 /// By default, the operation is randomized between the each shard replicas.
418418 /// </para>
419419 /// <para>
420- /// A custom value will be used to guarantee that the same shards will be used for
421- /// the same custom value. This can help with "jumping values" when hitting different
422- /// shards in different refresh states. A sample value can be something like the
423- /// web session id, or the user name.
424- /// </para>
425- /// </summary>
426- public SearchDescriptor < T > ExecuteOnCustomNode ( string node )
427- {
428- node . ThrowIfNull ( "node" ) ;
429- this . _Preference = node ;
430- return this ;
431- }
432- /// <summary>
433- /// <para>
434- /// Controls a preference of which shard replicas to execute the search request on.
435- /// By default, the operation is randomized between the each shard replicas.
436- /// </para>
437- /// <para>
438420 /// Prefers execution on the node with the provided node id if applicable.
439421 /// </para>
440422 /// </summary>
You can’t perform that action at this time.
0 commit comments