Java High-Level Client 7.X, set request parameter

Hi there,

I'm trying to send a request parameter in a search request, namely track-total-hits=true as mentioned here. Is that possible?

I looked into org.elasticsearch.action.search.SearchRequest but couldn't find anything.

I'm using elasticsearch-rest-high-level-client:7.4.0.

Thanks

Welcome!

See this piece of code:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.