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