Optimal value for indices.query.bool.max_clause_count

That setting is a protection against abusive queries with many search terms. It is unrelated to the number of search hits any query might produce. What problem are you trying to solve?