New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Preference

edit

Signals on what node to execute the search

You can call the following methods on SearchDescriptor

.Preference("my_custom_preference")


.ExecuteOnPrimary()


.ExecuteOnLocalShard


.ExecuteOnNode("mynodename")
Was this helpful?
Feedback