Java Client: How to set _source.exclude_vectors: false when searching an index?

Hello everyone,

I am currently working with Elasticsearch server version 9.2.0.
I would like to retrieve vector fields in search responses by specifying:

"_source": {
  "exclude_vectors": false
}

However, when using the Elasticsearch Java Client (elasticsearch-java), I cannot find a way to set this option in SearchRequest.Builder or SourceConfig.

Currently, I can only control _source at a general field level using includes or excludes, but I need a way to explicitly rehydrate vector fields in the search results.

Could you please advise if there is a supported way to achieve this in the Java Client, or if this is a missing feature?

What does the mappings for the index look like?