Join GitHub today
Reject query if top hits result window exceeds index max result window #29199
1 similar comment
@liketic thanks for updating the test. In the meanwhile I've been looking into the MAX_INNER_RESULT_WINDOW_SETTING, the other setting that constrains the number of hits in the top hits aggregation. From its javadocs:
Because this clearly mentions top hits aggregation, and is much lower than MAX_RESULT_WINDOW_SETTING, I wonder if we shouldn't leave it the only setting limiting the aggregation result size. Maybe @jimczi who opened the issue has an opinion or can explain to me what I'm missing?