The @Query annotation contains no options for this.
I can't add -
{
"_source": {
"includes": [
"id",
"name",
"address"
]
},
"query": {
...
}
}
Projections don't work in ES repositories.
The only way is to make your own repository (NativeSearchQuery and ect.) or DTO?
Why can't these things be made easier?