Just like we did for TermQuery, BooleanQuery, PhraseQuery, ...
Here is a patch. Now DisjunctionMaxQuery expects all clauses to be provided at construction time.
Commit 1711509 from Adrien Grand in branch 'dev/trunk'
[ https://svn.apache.org/r1711509 ]
LUCENE-6870: Make DisjunctionMaxQuery immutable.
Commit 1711535 from Adrien Grand in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1711535 ]
Thanks Alan for having a look!