SearchRequest builder only lets me specify a list of stored fields (or an empty list), but no way to set it to the string
If I leave this as the default, or set it to an empty list, I don't get the desired behaviour.
I'm basically trying to generate a query similar to this one: Retrieve selected fields from a search | Elasticsearch Guide [8.10] | Elastic
After some more testing and reading through the source, it doesn't look like it's possible with the Java API client.
I've opened an issue for this now: No way to set `stored_fields` to the string `_none_` using the Java API client · Issue #680 · elastic/elasticsearch-java · GitHub
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.